/linux/drivers/input/touchscreen/ |
H A D | goodix.c | 63 static int goodix_check_cfg_8(struct goodix_ts_data *ts, 65 static int goodix_check_cfg_16(struct goodix_ts_data *ts, 67 static void goodix_calc_cfg_checksum_8(struct goodix_ts_data *ts); 68 static void goodix_calc_cfg_checksum_16(struct goodix_ts_data *ts); 253 static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data) in goodix_ts_read_input_report() argument 261 * ts->contact_size * max(1, touch_num) bytes of coordinates in goodix_ts_read_input_report() 264 const int header_contact_keycode_size = 1 + ts->contact_size + 1; in goodix_ts_read_input_report() 273 error = goodix_i2c_read(ts->client, addr, data, in goodix_ts_read_input_report() 280 if (touch_num > ts->max_touch_num) in goodix_ts_read_input_report() 286 error = goodix_i2c_read(ts in goodix_ts_read_input_report() 312 goodix_create_pen_input(struct goodix_ts_data * ts) goodix_create_pen_input() argument 350 goodix_ts_report_pen_down(struct goodix_ts_data * ts,u8 * data) goodix_ts_report_pen_down() argument 391 goodix_ts_report_pen_up(struct goodix_ts_data * ts) goodix_ts_report_pen_up() argument 404 goodix_ts_report_touch_8b(struct goodix_ts_data * ts,u8 * coor_data) goodix_ts_report_touch_8b() argument 419 goodix_ts_report_touch_9b(struct goodix_ts_data * ts,u8 * coor_data) goodix_ts_report_touch_9b() argument 434 goodix_ts_release_keys(struct goodix_ts_data * ts) goodix_ts_release_keys() argument 442 goodix_ts_report_key(struct goodix_ts_data * ts,u8 * data) goodix_ts_report_key() argument 468 goodix_process_events(struct goodix_ts_data * ts) goodix_process_events() argument 504 struct goodix_ts_data *ts = input_get_drvdata(input); goodix_ts_work_i2c_poll() local 518 struct goodix_ts_data *ts = dev_id; goodix_ts_irq_handler() local 526 goodix_enable_irq(struct goodix_ts_data * ts) goodix_enable_irq() argument 532 goodix_disable_irq(struct goodix_ts_data * ts) goodix_disable_irq() argument 538 goodix_free_irq(struct goodix_ts_data * ts) goodix_free_irq() argument 544 goodix_request_irq(struct goodix_ts_data * ts) goodix_request_irq() argument 554 goodix_check_cfg_8(struct goodix_ts_data * ts,const u8 * cfg,int len) goodix_check_cfg_8() argument 577 goodix_calc_cfg_checksum_8(struct goodix_ts_data * ts) goodix_calc_cfg_checksum_8() argument 590 goodix_check_cfg_16(struct goodix_ts_data * ts,const u8 * cfg,int len) goodix_check_cfg_16() argument 614 goodix_calc_cfg_checksum_16(struct goodix_ts_data * ts) goodix_calc_cfg_checksum_16() argument 634 goodix_check_cfg(struct goodix_ts_data * ts,const u8 * cfg,int len) goodix_check_cfg() argument 653 goodix_send_cfg(struct goodix_ts_data * ts,const u8 * cfg,int len) goodix_send_cfg() argument 674 goodix_pin_acpi_direction_input(struct goodix_ts_data * ts) goodix_pin_acpi_direction_input() argument 683 goodix_pin_acpi_output_method(struct goodix_ts_data * ts,int value) goodix_pin_acpi_output_method() argument 692 goodix_pin_acpi_direction_input(struct goodix_ts_data * ts) goodix_pin_acpi_direction_input() argument 699 goodix_pin_acpi_output_method(struct goodix_ts_data * ts,int value) goodix_pin_acpi_output_method() argument 707 goodix_irq_direction_output(struct goodix_ts_data * ts,int value) goodix_irq_direction_output() argument 730 goodix_irq_direction_input(struct goodix_ts_data * ts) goodix_irq_direction_input() argument 749 goodix_int_sync(struct goodix_ts_data * ts) goodix_int_sync() argument 775 goodix_reset_no_int_sync(struct goodix_ts_data * ts) goodix_reset_no_int_sync() argument 822 goodix_reset(struct goodix_ts_data * ts) goodix_reset() argument 856 struct goodix_ts_data *ts = data; goodix_resource() local 881 goodix_add_acpi_gpio_mappings(struct goodix_ts_data * ts) goodix_add_acpi_gpio_mappings() argument 971 goodix_add_acpi_gpio_mappings(struct goodix_ts_data * ts) goodix_add_acpi_gpio_mappings() argument 982 goodix_get_gpio_config(struct goodix_ts_data * ts) goodix_get_gpio_config() argument 1064 goodix_read_config(struct goodix_ts_data * ts) goodix_read_config() argument 1102 goodix_read_version(struct goodix_ts_data * ts) goodix_read_version() argument 1156 goodix_configure_dev(struct goodix_ts_data * ts) goodix_configure_dev() argument 1299 struct goodix_ts_data *ts = ctx; goodix_config_cb() local 1327 struct goodix_ts_data *ts = arg; goodix_disable_regulators() local 1335 struct goodix_ts_data *ts; goodix_ts_probe() local 1446 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_ts_remove() local 1455 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_suspend() local 1502 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_resume() local [all...] |
H A D | mxs-lradc-ts.c | 91 static bool mxs_lradc_check_touch_event(struct mxs_lradc_ts *ts) in mxs_lradc_check_touch_event() argument 93 return !!(readl(ts->base + LRADC_STATUS) & in mxs_lradc_check_touch_event() 97 static void mxs_lradc_map_ts_channel(struct mxs_lradc_ts *ts, unsigned int vch, in mxs_lradc_map_ts_channel() argument 101 ts->base + LRADC_CTRL4 + STMP_OFFSET_REG_CLR); in mxs_lradc_map_ts_channel() 103 ts->base + LRADC_CTRL4 + STMP_OFFSET_REG_SET); in mxs_lradc_map_ts_channel() 106 static void mxs_lradc_setup_ts_channel(struct mxs_lradc_ts *ts, unsigned int ch) in mxs_lradc_setup_ts_channel() argument 117 LRADC_CH_NUM_SAMPLES(ts->over_sample_cnt - 1), in mxs_lradc_setup_ts_channel() 118 ts->base + LRADC_CH(ch)); in mxs_lradc_setup_ts_channel() 125 ts->base + LRADC_CH(ch) + STMP_OFFSET_REG_CLR); in mxs_lradc_setup_ts_channel() 136 LRADC_DELAY_LOOP(ts in mxs_lradc_setup_ts_channel() 160 mxs_lradc_setup_ts_pressure(struct mxs_lradc_ts * ts,unsigned int ch1,unsigned int ch2) mxs_lradc_setup_ts_pressure() argument 208 mxs_lradc_ts_read_raw_channel(struct mxs_lradc_ts * ts,unsigned int channel) mxs_lradc_ts_read_raw_channel() argument 224 mxs_lradc_read_ts_pressure(struct mxs_lradc_ts * ts,unsigned int ch1,unsigned int ch2) mxs_lradc_read_ts_pressure() argument 272 mxs_lradc_setup_touch_detection(struct mxs_lradc_ts * ts) mxs_lradc_setup_touch_detection() argument 300 mxs_lradc_prepare_x_pos(struct mxs_lradc_ts * ts) mxs_lradc_prepare_x_pos() argument 326 mxs_lradc_prepare_y_pos(struct mxs_lradc_ts * ts) mxs_lradc_prepare_y_pos() argument 352 mxs_lradc_prepare_pressure(struct mxs_lradc_ts * ts) mxs_lradc_prepare_pressure() argument 368 mxs_lradc_enable_touch_detection(struct mxs_lradc_ts * ts) mxs_lradc_enable_touch_detection() argument 379 mxs_lradc_start_touch_event(struct mxs_lradc_ts * ts) mxs_lradc_start_touch_event() argument 392 mxs_lradc_report_ts_event(struct mxs_lradc_ts * ts) mxs_lradc_report_ts_event() argument 401 mxs_lradc_complete_touch_event(struct mxs_lradc_ts * ts) mxs_lradc_complete_touch_event() argument 422 mxs_lradc_finish_touch_event(struct mxs_lradc_ts * ts,bool valid) mxs_lradc_finish_touch_event() argument 456 mxs_lradc_handle_touch(struct mxs_lradc_ts * ts) mxs_lradc_handle_touch() argument 495 struct mxs_lradc_ts *ts = data; mxs_lradc_ts_handle_irq() local 524 struct mxs_lradc_ts *ts = input_get_drvdata(dev); mxs_lradc_ts_open() local 532 mxs_lradc_ts_stop(struct mxs_lradc_ts * ts) mxs_lradc_ts_stop() argument 556 struct mxs_lradc_ts *ts = input_get_drvdata(dev); mxs_lradc_ts_close() local 561 mxs_lradc_ts_hw_init(struct mxs_lradc_ts * ts) mxs_lradc_ts_hw_init() argument 576 mxs_lradc_ts_register(struct mxs_lradc_ts * ts) mxs_lradc_ts_register() argument 608 struct mxs_lradc_ts *ts; mxs_lradc_ts_probe() local [all...] |
H A D | ad7879.c | 135 static int ad7879_read(struct ad7879 *ts, u8 reg) in ad7879_read() argument 140 error = regmap_read(ts->regmap, reg, &val); in ad7879_read() 142 dev_err(ts->dev, "failed to read register %#02x: %d\n", in ad7879_read() 150 static int ad7879_write(struct ad7879 *ts, u8 reg, u16 val) in ad7879_write() argument 154 error = regmap_write(ts->regmap, reg, val); in ad7879_write() 156 dev_err(ts->dev, in ad7879_write() 165 static int ad7879_report(struct ad7879 *ts) in ad7879_report() argument 167 struct input_dev *input_dev = ts->input; in ad7879_report() 171 x = ts->conversion_data[AD7879_SEQ_XPOS] & MAX_12BIT; in ad7879_report() 172 y = ts in ad7879_report() 229 ad7879_ts_event_release(struct ad7879 * ts) ad7879_ts_event_release() argument 240 struct ad7879 *ts = timer_container_of(ts, t, timer); ad7879_timer() local 247 struct ad7879 *ts = handle; ad7879_irq() local 261 __ad7879_enable(struct ad7879 * ts) __ad7879_enable() argument 270 __ad7879_disable(struct ad7879 * ts) __ad7879_disable() argument 285 struct ad7879 *ts = input_get_drvdata(input); ad7879_open() local 296 struct ad7879 *ts = input_get_drvdata(input); ad7879_close() local 305 struct ad7879 *ts = dev_get_drvdata(dev); ad7879_suspend() local 321 struct ad7879 *ts = dev_get_drvdata(dev); ad7879_resume() local 338 ad7879_toggle(struct ad7879 * ts,bool disable) ad7879_toggle() argument 361 struct ad7879 *ts = dev_get_drvdata(dev); ad7879_disable_show() local 370 struct ad7879 *ts = dev_get_drvdata(dev); ad7879_disable_store() local 404 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_input() local 418 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_output() local 437 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_get_value() local 450 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_set_value() local 465 ad7879_gpio_add(struct ad7879 * ts) ad7879_gpio_add() argument 494 ad7879_gpio_add(struct ad7879 * ts) ad7879_gpio_add() argument 500 ad7879_parse_dt(struct device * dev,struct ad7879 * ts) ad7879_parse_dt() argument 529 struct ad7879 *ts; ad7879_probe() local [all...] |
H A D | cyttsp_core.c | 77 static int ttsp_read_block_data(struct cyttsp *ts, u8 command, in ttsp_read_block_data() argument 84 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 95 static int ttsp_write_block_data(struct cyttsp *ts, u8 command, in ttsp_write_block_data() argument 102 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 113 static int ttsp_send_command(struct cyttsp *ts, u8 cmd) in ttsp_send_command() argument 115 return ttsp_write_block_data(ts, CY_REG_BAS in ttsp_send_command() 118 cyttsp_handshake(struct cyttsp * ts) cyttsp_handshake() argument 127 cyttsp_load_bl_regs(struct cyttsp * ts) cyttsp_load_bl_regs() argument 136 cyttsp_exit_bl_mode(struct cyttsp * ts) cyttsp_exit_bl_mode() argument 164 cyttsp_set_operational_mode(struct cyttsp * ts) cyttsp_set_operational_mode() argument 185 cyttsp_set_sysinfo_mode(struct cyttsp * ts) cyttsp_set_sysinfo_mode() argument 213 cyttsp_set_sysinfo_regs(struct cyttsp * ts) cyttsp_set_sysinfo_regs() argument 236 cyttsp_hard_reset(struct cyttsp * ts) cyttsp_hard_reset() argument 252 cyttsp_soft_reset(struct cyttsp * ts) cyttsp_soft_reset() argument 280 cyttsp_act_dist_setup(struct cyttsp * ts) cyttsp_act_dist_setup() argument 314 cyttsp_report_tchdata(struct cyttsp * ts) cyttsp_report_tchdata() argument 367 struct cyttsp *ts = handle; cyttsp_irq() local 409 cyttsp_power_on(struct cyttsp * ts) cyttsp_power_on() argument 457 cyttsp_enable(struct cyttsp * ts) cyttsp_enable() argument 480 cyttsp_disable(struct cyttsp * ts) cyttsp_disable() argument 495 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_suspend() local 513 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_resume() local 531 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_open() local 542 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_close() local 548 cyttsp_parse_properties(struct cyttsp * ts) cyttsp_parse_properties() argument 625 struct cyttsp *ts; cyttsp_probe() local [all...] |
H A D | melfas_mip4.c | 179 static int mip4_i2c_xfer(struct mip4_ts *ts, in mip4_i2c_xfer() argument 185 .addr = ts->client->addr, in mip4_i2c_xfer() 190 .addr = ts->client->addr, in mip4_i2c_xfer() 201 res = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); in mip4_i2c_xfer() 206 dev_err(&ts->client->dev, in mip4_i2c_xfer() 225 static int mip4_get_fw_version(struct mip4_ts *ts) in mip4_get_fw_version() argument 228 u8 buf[sizeof(ts->fw_version)]; in mip4_get_fw_version() 231 error = mip4_i2c_xfer(ts, cmd, sizeof(cmd), buf, sizeof(buf)); in mip4_get_fw_version() 233 memset(&ts->fw_version, 0xff, sizeof(ts in mip4_get_fw_version() 245 mip4_query_device(struct mip4_ts * ts) mip4_query_device() argument 366 mip4_power_on(struct mip4_ts * ts) mip4_power_on() argument 378 mip4_power_off(struct mip4_ts * ts) mip4_power_off() argument 387 mip4_clear_input(struct mip4_ts * ts) mip4_clear_input() argument 404 mip4_enable(struct mip4_ts * ts) mip4_enable() argument 417 mip4_disable(struct mip4_ts * ts) mip4_disable() argument 430 mip4_report_keys(struct mip4_ts * ts,u8 * packet) mip4_report_keys() argument 465 mip4_report_touch(struct mip4_ts * ts,u8 * packet) mip4_report_touch() argument 543 mip4_handle_packet(struct mip4_ts * ts,u8 * packet) mip4_handle_packet() argument 584 struct mip4_ts *ts = dev_id; mip4_interrupt() local 640 struct mip4_ts *ts = input_get_drvdata(dev); mip4_input_open() local 647 struct mip4_ts *ts = input_get_drvdata(dev); mip4_input_close() local 706 mip4_bl_read_status(struct mip4_ts * ts) mip4_bl_read_status() argument 768 mip4_bl_change_mode(struct mip4_ts * ts,u8 mode) mip4_bl_change_mode() argument 831 mip4_bl_enter(struct mip4_ts * ts) mip4_bl_enter() argument 839 mip4_bl_exit(struct mip4_ts * ts) mip4_bl_exit() argument 844 mip4_bl_get_address(struct mip4_ts * ts,u16 * buf_addr) mip4_bl_get_address() argument 880 mip4_bl_program_page(struct mip4_ts * ts,int offset,const u8 * data,int length,u16 buf_addr) mip4_bl_program_page() argument 966 mip4_bl_verify_page(struct mip4_ts * ts,int offset,const u8 * data,int length,int buf_addr) mip4_bl_verify_page() argument 1079 mip4_flash_fw(struct mip4_ts * ts,const u8 * fw_data,u32 fw_size,u32 fw_offset) mip4_flash_fw() argument 1155 mip4_parse_firmware(struct mip4_ts * ts,const struct firmware * fw,u32 * fw_offset_start,u32 * fw_size,const struct mip4_bin_tail ** pfw_info) mip4_parse_firmware() argument 1246 mip4_execute_fw_update(struct mip4_ts * ts,const struct firmware * fw) mip4_execute_fw_update() argument 1292 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_sysfs_fw_update() local 1333 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_sysfs_read_fw_version() local 1355 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_sysfs_read_hw_version() local 1380 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_sysfs_read_product_id() local 1399 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_sysfs_read_ic_name() local 1426 struct mip4_ts *ts; mip4_probe() local 1520 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_suspend() local 1538 struct mip4_ts *ts = i2c_get_clientdata(client); mip4_resume() local [all...] |
H A D | ads7846.c | 219 static int get_pendown_state(struct ads7846 *ts) in get_pendown_state() argument 221 if (ts->get_pendown_state) in get_pendown_state() 222 return ts->get_pendown_state(); in get_pendown_state() 224 return gpiod_get_value(ts->gpio_pendown); in get_pendown_state() 227 static void ads7846_report_pen_up(struct ads7846 *ts) in ads7846_report_pen_up() argument 229 struct input_dev *input = ts->input; in ads7846_report_pen_up() 235 ts->pendown = false; in ads7846_report_pen_up() 236 dev_vdbg(&ts->spi->dev, "UP\n"); in ads7846_report_pen_up() 239 /* Must be called with ts->lock held */ 240 static void ads7846_stop(struct ads7846 *ts) in ads7846_stop() argument 252 ads7846_restart(struct ads7846 * ts) ads7846_restart() argument 267 __ads7846_disable(struct ads7846 * ts) __ads7846_disable() argument 279 __ads7846_enable(struct ads7846 * ts) __ads7846_enable() argument 290 ads7846_disable(struct ads7846 * ts) ads7846_disable() argument 305 ads7846_enable(struct ads7846 * ts) ads7846_enable() argument 356 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_read12_ser() local 441 struct ads7846 *ts = dev_get_drvdata(dev); ads7845_read12_ser() local 494 null_adjust(struct ads7846 * ts,ssize_t v) null_adjust() argument 518 vbatt_adjust(struct ads7846 * ts,ssize_t v) vbatt_adjust() argument 536 struct ads7846 *ts = dev_get_drvdata(dev); SHOW() local 560 ads784x_hwmon_register(struct spi_device * spi,struct ads7846 * ts) ads784x_hwmon_register() argument 593 ads784x_hwmon_register(struct spi_device * spi,struct ads7846 * ts) ads784x_hwmon_register() argument 602 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_pen_down_show() local 612 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_disable_show() local 621 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_disable_store() local 650 struct ads7846 *ts = ads; ads7846_debounce_filter() local 705 ads7846_set_cmd_val(struct ads7846 * ts,enum ads7846_cmds cmd_idx,u16 val) ads7846_set_cmd_val() argument 767 ads7846_filter(struct ads7846 * ts) ads7846_filter() argument 800 ads7846_wait_for_hsync(struct ads7846 * ts) ads7846_wait_for_hsync() argument 822 ads7846_read_state(struct ads7846 * ts) ads7846_read_state() argument 850 ads7846_report_state(struct ads7846 * ts) ads7846_report_state() argument 934 struct ads7846 *ts = handle; ads7846_hard_irq() local 942 struct ads7846 *ts = handle; ads7846_irq() local 967 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_suspend() local 989 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_resume() local 1012 ads7846_setup_pendown(struct spi_device * spi,struct ads7846 * ts,const struct ads7846_platform_data * pdata) ads7846_setup_pendown() argument 1041 ads7846_setup_spi_msg(struct ads7846 * ts,const struct ads7846_platform_data * pdata) ads7846_setup_spi_msg() argument 1216 struct ads7846 *ts; ads7846_probe() local 1418 struct ads7846 *ts = spi_get_drvdata(spi); ads7846_remove() local [all...] |
H A D | imagis.c | 66 static int imagis_i2c_read_reg(struct imagis_ts *ts, in imagis_i2c_read_reg() argument 73 .addr = ts->client->addr, in imagis_i2c_read_reg() 78 .addr = ts->client->addr, in imagis_i2c_read_reg() 89 ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); in imagis_i2c_read_reg() 96 dev_err(&ts->client->dev, in imagis_i2c_read_reg() 106 struct imagis_ts *ts = dev_id; in imagis_interrupt() local 112 error = imagis_i2c_read_reg(ts, ts->tdata->interrupt_msg_cmd, &intr_message); in imagis_interrupt() 114 dev_err(&ts->client->dev, in imagis_interrupt() 121 dev_err(&ts in imagis_interrupt() 170 struct imagis_ts *ts = _ts; imagis_power_off() local 175 imagis_power_on(struct imagis_ts * ts) imagis_power_on() argument 188 imagis_start(struct imagis_ts * ts) imagis_start() argument 201 imagis_stop(struct imagis_ts * ts) imagis_stop() argument 212 struct imagis_ts *ts = input_get_drvdata(dev); imagis_input_open() local 219 struct imagis_ts *ts = input_get_drvdata(dev); imagis_input_close() local 224 imagis_init_input_dev(struct imagis_ts * ts) imagis_init_input_dev() argument 290 imagis_init_regulators(struct imagis_ts * ts) imagis_init_regulators() argument 304 struct imagis_ts *ts; imagis_probe() local 368 struct imagis_ts *ts = i2c_get_clientdata(client); imagis_suspend() local 384 struct imagis_ts *ts = i2c_get_clientdata(client); imagis_resume() local [all...] |
H A D | cyttsp5.c | 219 static int cyttsp5_read(struct cyttsp5 *ts, u8 *buf, u32 max) in cyttsp5_read() argument 226 error = regmap_bulk_read(ts->regmap, HID_INPUT_REG, temp, sizeof(temp)); in cyttsp5_read() 238 return regmap_bulk_read(ts->regmap, HID_INPUT_REG, buf, size); in cyttsp5_read() 241 static int cyttsp5_write(struct cyttsp5 *ts, unsigned int reg, u8 *data, in cyttsp5_write() argument 263 return regmap_bulk_write(ts->regmap, reg & 0xFF, cmd, size + 1); in cyttsp5_write() 277 static void cyttsp5_get_touch_record(struct cyttsp5 *ts, in cyttsp5_get_touch_record() argument 280 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_touch_record() 291 static void cyttsp5_get_mt_touches(struct cyttsp5 *ts, in cyttsp5_get_mt_touches() argument 294 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_mt_touches() 303 switch (ts in cyttsp5_get_mt_touches() 346 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_mt_attention() local 377 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_setup_input_device() local 412 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_parse_dt_key_code() local 427 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_btn_attention() local 458 cyttsp5_validate_cmd_response(struct cyttsp5 * ts,u8 code) cyttsp5_validate_cmd_response() argument 513 cyttsp5_si_get_btn_data(struct cyttsp5 * ts) cyttsp5_si_get_btn_data() argument 522 cyttsp5_get_sysinfo_regs(struct cyttsp5 * ts) cyttsp5_get_sysinfo_regs() argument 541 cyttsp5_hid_output_get_sysinfo(struct cyttsp5 * ts) cyttsp5_hid_output_get_sysinfo() argument 576 cyttsp5_power_control(struct cyttsp5 * ts,bool on) cyttsp5_power_control() argument 610 cyttsp5_hid_output_bl_launch_app(struct cyttsp5 * ts) cyttsp5_hid_output_bl_launch_app() argument 650 cyttsp5_get_hid_descriptor(struct cyttsp5 * ts,struct cyttsp5_hid_desc * desc) cyttsp5_get_hid_descriptor() argument 698 struct cyttsp5 *ts = handle; cyttsp5_handle_irq() local 736 cyttsp5_deassert_int(struct cyttsp5 * ts) cyttsp5_deassert_int() argument 753 cyttsp5_fill_all_touch(struct cyttsp5 * ts) cyttsp5_fill_all_touch() argument 775 cyttsp5_startup(struct cyttsp5 * ts) cyttsp5_startup() argument 818 struct cyttsp5 *ts = data; cyttsp5_cleanup() local 826 struct cyttsp5 *ts; cyttsp5_probe() local 948 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_suspend() local 958 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_resume() local [all...] |
H A D | himax_hx83112b.c | 64 int (*check_id)(struct himax_ts_data *ts); 65 int (*read_events)(struct himax_ts_data *ts, struct himax_event *event, 84 static int himax_bus_enable_burst(struct himax_ts_data *ts) in himax_bus_enable_burst() argument 88 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_CONTI, in himax_bus_enable_burst() 93 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_INCR4, in himax_bus_enable_burst() 101 static int himax_bus_read(struct himax_ts_data *ts, u32 address, void *dst, in himax_bus_read() argument 107 error = himax_bus_enable_burst(ts); in himax_bus_read() 112 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_BYTE_0, address); in himax_bus_read() 116 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_ACCESS_DIRECTION, in himax_bus_read() 122 error = regmap_noinc_read(ts in himax_bus_read() 133 himax_reset(struct himax_ts_data * ts) himax_reset() argument 148 himax_read_product_id(struct himax_ts_data * ts,u32 * product_id) himax_read_product_id() argument 161 himax_check_product_id(struct himax_ts_data * ts) himax_check_product_id() argument 180 himax_input_register(struct himax_ts_data * ts) himax_input_register() argument 225 himax_process_event_point(struct himax_ts_data * ts,const struct himax_event * event,int point_index) himax_process_event_point() argument 245 himax_process_event(struct himax_ts_data * ts,const struct himax_event * event) himax_process_event() argument 260 himax_verify_checksum(struct himax_ts_data * ts,const struct himax_event * event) himax_verify_checksum() argument 279 himax_read_events(struct himax_ts_data * ts,struct himax_event * event,size_t length) himax_read_events() argument 286 hx83100a_read_events(struct himax_ts_data * ts,struct himax_event * event,size_t length) hx83100a_read_events() argument 292 himax_handle_input(struct himax_ts_data * ts) himax_handle_input() argument 317 struct himax_ts_data *ts = dev_id; himax_irq_handler() local 330 struct himax_ts_data *ts; himax_probe() local 382 struct himax_ts_data *ts = dev_get_drvdata(dev); himax_suspend() local 390 struct himax_ts_data *ts = dev_get_drvdata(dev); himax_resume() local [all...] |
H A D | ilitek_ts_i2c.c | 74 int (*func)(struct ilitek_ts_data *ts, u16 cmd, u8 *inbuf, u8 *outbuf); 93 static int ilitek_i2c_write_and_read(struct ilitek_ts_data *ts, in ilitek_i2c_write_and_read() argument 98 struct i2c_client *client = ts->client; in ilitek_i2c_write_and_read() 138 static void ilitek_touch_down(struct ilitek_ts_data *ts, unsigned int id, in ilitek_touch_down() argument 141 struct input_dev *input = ts->input_dev; in ilitek_touch_down() 146 touchscreen_report_pos(input, &ts->prop, x, y, true); in ilitek_touch_down() 149 static int ilitek_process_and_report_v6(struct ilitek_ts_data *ts) in ilitek_process_and_report_v6() argument 157 struct input_dev *input = ts->input_dev; in ilitek_process_and_report_v6() 158 struct device *dev = &ts->client->dev; in ilitek_process_and_report_v6() 161 error = ilitek_i2c_write_and_read(ts, NUL in ilitek_process_and_report_v6() 218 api_protocol_set_cmd(struct ilitek_ts_data * ts,u16 idx,u8 * inbuf,u8 * outbuf) api_protocol_set_cmd() argument 235 api_protocol_get_ptl_ver(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_ptl_ver() argument 252 api_protocol_get_mcu_ver(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_mcu_ver() argument 270 api_protocol_get_fw_ver(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_fw_ver() argument 286 api_protocol_get_scrn_res(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_scrn_res() argument 305 api_protocol_get_tp_res(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_tp_res() argument 326 api_protocol_get_ic_mode(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_get_ic_mode() argument 341 api_protocol_set_ic_sleep(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_set_ic_sleep() argument 350 api_protocol_set_ic_wake(struct ilitek_ts_data * ts,u16 cmd,u8 * inbuf,u8 * outbuf) api_protocol_set_ic_wake() argument 396 ilitek_reset(struct ilitek_ts_data * ts,int delay) ilitek_reset() argument 406 ilitek_protocol_init(struct ilitek_ts_data * ts) ilitek_protocol_init() argument 427 ilitek_read_tp_info(struct ilitek_ts_data * ts,bool boot) ilitek_read_tp_info() argument 462 ilitek_input_dev_init(struct device * dev,struct ilitek_ts_data * ts) ilitek_input_dev_init() argument 502 struct ilitek_ts_data *ts = dev_id; ilitek_i2c_isr() local 518 struct ilitek_ts_data *ts = i2c_get_clientdata(client); firmware_version_show() local 533 struct ilitek_ts_data *ts = i2c_get_clientdata(client); product_id_show() local 549 struct ilitek_ts_data *ts; ilitek_ts_i2c_probe() local 606 struct ilitek_ts_data *ts = i2c_get_clientdata(client); ilitek_suspend() local 623 struct ilitek_ts_data *ts = i2c_get_clientdata(client); ilitek_resume() local [all...] |
H A D | zforce_ts.c | 128 static int zforce_command(struct zforce_ts *ts, u8 cmd) in zforce_command() argument 130 struct i2c_client *client = ts->client; in zforce_command() 149 static int zforce_send_wait(struct zforce_ts *ts, const char *buf, int len) in zforce_send_wait() argument 151 struct i2c_client *client = ts->client; in zforce_send_wait() 157 ts->command_waiting = buf[2]; in zforce_send_wait() 167 if (wait_for_completion_timeout(&ts->command_done, WAIT_TIMEOUT) == 0) in zforce_send_wait() 170 ret = ts->command_result; in zforce_send_wait() 174 static int zforce_command_wait(struct zforce_ts *ts, u8 cmd) in zforce_command_wait() argument 176 struct i2c_client *client = ts->client; in zforce_command_wait() 186 error = zforce_send_wait(ts, in zforce_command_wait() 196 zforce_resolution(struct zforce_ts * ts,u16 x,u16 y) zforce_resolution() argument 208 zforce_scan_frequency(struct zforce_ts * ts,u16 idle,u16 finger,u16 stylus) zforce_scan_frequency() argument 224 zforce_setconfig(struct zforce_ts * ts,char b1) zforce_setconfig() argument 235 zforce_start(struct zforce_ts * ts) zforce_start() argument 287 zforce_stop(struct zforce_ts * ts) zforce_stop() argument 305 zforce_touch_event(struct zforce_ts * ts,u8 * payload) zforce_touch_event() argument 379 zforce_read_packet(struct zforce_ts * ts,u8 * buf) zforce_read_packet() argument 415 zforce_complete(struct zforce_ts * ts,int cmd,int result) zforce_complete() argument 430 struct zforce_ts *ts = dev_id; zforce_irq() local 441 struct zforce_ts *ts = dev_id; zforce_irq_thread() local 553 struct zforce_ts *ts = input_get_drvdata(dev); zforce_input_open() local 560 struct zforce_ts *ts = input_get_drvdata(dev); zforce_input_close() local 569 __zforce_suspend(struct zforce_ts * ts) __zforce_suspend() argument 610 struct zforce_ts *ts = i2c_get_clientdata(client); zforce_suspend() local 627 struct zforce_ts *ts = i2c_get_clientdata(client); zforce_resume() local 663 struct zforce_ts *ts = data; zforce_reset() local 669 zforce_ts_parse_legacy_properties(struct zforce_ts * ts) zforce_ts_parse_legacy_properties() argument 683 struct zforce_ts *ts; zforce_probe() local [all...] |
H A D | ipaq-micro-ts.c | 29 struct touchscreen_data *ts = data; in micro_ts_receive() local 32 input_report_abs(ts->input, ABS_X, in micro_ts_receive() 34 input_report_abs(ts->input, ABS_Y, in micro_ts_receive() 36 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive() 37 input_sync(ts->input); in micro_ts_receive() 39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive() 40 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive() 41 input_report_key(ts->input, BTN_TOUCH, 0); in micro_ts_receive() 42 input_sync(ts->input); in micro_ts_receive() 46 static void micro_ts_toggle_receive(struct touchscreen_data *ts, boo argument 65 struct touchscreen_data *ts = input_get_drvdata(input); micro_ts_open() local 74 struct touchscreen_data *ts = input_get_drvdata(input); micro_ts_close() local 82 struct touchscreen_data *ts; micro_ts_probe() local 124 struct touchscreen_data *ts = dev_get_drvdata(dev); micro_ts_suspend() local 133 struct touchscreen_data *ts = dev_get_drvdata(dev); micro_ts_resume() local [all...] |
H A D | goodix_fwupload.c | 189 static int goodix_firmware_upload(struct goodix_ts_data *ts) in goodix_firmware_upload() argument 196 snprintf(fw_name, sizeof(fw_name), "goodix/%s", ts->firmware_name); in goodix_firmware_upload() 198 error = request_firmware(&fw, fw_name, &ts->client->dev); in goodix_firmware_upload() 200 dev_err(&ts->client->dev, "Firmware request error %d\n", error); in goodix_firmware_upload() 204 error = goodix_firmware_verify(&ts->client->dev, fw); in goodix_firmware_upload() 208 error = goodix_reset_no_int_sync(ts); in goodix_firmware_upload() 212 error = goodix_enter_upload_mode(ts->client); in goodix_firmware_upload() 217 error = goodix_i2c_write_u8(ts->client, in goodix_firmware_upload() 223 error = goodix_i2c_write(ts->client, GOODIX_FW_UPLOAD_ADDRESS, in goodix_firmware_upload() 229 error = goodix_i2c_write_u8(ts in goodix_firmware_upload() 262 goodix_prepare_bak_ref(struct goodix_ts_data * ts) goodix_prepare_bak_ref() argument 309 goodix_send_main_clock(struct goodix_ts_data * ts) goodix_send_main_clock() argument 330 goodix_firmware_check(struct goodix_ts_data * ts) goodix_firmware_check() argument 348 goodix_handle_fw_request(struct goodix_ts_data * ts) goodix_handle_fw_request() argument 406 goodix_save_bak_ref(struct goodix_ts_data * ts) goodix_save_bak_ref() argument [all...] |
H A D | zet6223.c | 37 struct zet6223_ts *ts = input_get_drvdata(dev); in zet6223_start() local 39 enable_irq(ts->client->irq); in zet6223_start() 46 struct zet6223_ts *ts = input_get_drvdata(dev); in zet6223_stop() local 48 disable_irq(ts->client->irq); in zet6223_stop() 53 struct zet6223_ts *ts = dev_id; in zet6223_irq() local 60 u8 bufsize = 3 + 4 * ts->fingernum; in zet6223_irq() 66 ret = i2c_master_recv(ts->client, buf, bufsize); in zet6223_irq() 69 dev_err_ratelimited(&ts->client->dev, in zet6223_irq() 78 for (i = 0; i < ts->fingernum; i++) { in zet6223_irq() 82 input_mt_slot(ts in zet6223_irq() 98 struct zet6223_ts *ts = _ts; zet6223_power_off() local 103 zet6223_power_on(struct zet6223_ts * ts) zet6223_power_on() argument 131 zet6223_query_device(struct zet6223_ts * ts) zet6223_query_device() argument 171 struct zet6223_ts *ts; zet6223_probe() local [all...] |
H A D | ad7877.c | 256 struct ad7877 *ts = spi_get_drvdata(spi); in ad7877_read_adc() local 270 AD7877_POL(ts->stopacq_polarity) | in ad7877_read_adc() 272 AD7877_ACQ(ts->acquisition_time) | AD7877_FCD(0); in ad7877_read_adc() 284 req->xfer[1].delay.value = ts->vref_delay_usecs; in ad7877_read_adc() 290 req->xfer[2].delay.value = ts->vref_delay_usecs; in ad7877_read_adc() 298 req->xfer[4].tx_buf = &ts->cmd_crtl2; /*REF OFF*/ in ad7877_read_adc() 302 req->xfer[5].tx_buf = &ts->cmd_crtl1; /*DEFAULT*/ in ad7877_read_adc() 319 static int ad7877_process_data(struct ad7877 *ts) in ad7877_process_data() argument 321 struct input_dev *input_dev = ts->input; in ad7877_process_data() 325 x = ts in ad7877_process_data() 367 ad7877_ts_event_release(struct ad7877 * ts) ad7877_ts_event_release() argument 378 struct ad7877 *ts = timer_container_of(ts, t, timer); ad7877_timer() local 388 struct ad7877 *ts = handle; ad7877_irq() local 410 struct ad7877 *ts = data; ad7877_disable() local 430 ad7877_enable(struct ad7877 * ts) ad7877_enable() argument 465 struct ad7877 *ts = dev_get_drvdata(dev); SHOW() local 474 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_disable_store() local 495 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_dac_show() local 504 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_dac_store() local 525 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_gpio3_show() local 534 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_gpio3_store() local 556 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_gpio4_show() local 565 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_gpio4_store() local 621 ad7877_setup_ts_def_msg(struct spi_device * spi,struct ad7877 * ts) ad7877_setup_ts_def_msg() argument 672 struct ad7877 *ts; ad7877_probe() local 790 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_suspend() local 799 struct ad7877 *ts = dev_get_drvdata(dev); ad7877_resume() local [all...] |
H A D | stmpe-ts.c | 46 #define STMPE_TS_NAME "stmpe-ts" 103 struct stmpe_touch *ts = in stmpe_work() local 106 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work() 117 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work() 122 __stmpe_reset_fifo(ts->stmpe); in stmpe_work() 124 input_report_abs(ts->idev, ABS_PRESSURE, 0); in stmpe_work() 125 input_report_key(ts->idev, BTN_TOUCH, 0); in stmpe_work() 126 input_sync(ts->idev); in stmpe_work() 133 struct stmpe_touch *ts = data; in stmpe_ts_handler() local 139 cancel_delayed_work_sync(&ts in stmpe_ts_handler() 174 stmpe_init_hw(struct stmpe_touch * ts) stmpe_init_hw() argument 238 struct stmpe_touch *ts = input_get_drvdata(dev); stmpe_ts_open() local 251 struct stmpe_touch *ts = input_get_drvdata(dev); stmpe_ts_close() local 260 stmpe_ts_get_platform_info(struct platform_device * pdev,struct stmpe_touch * ts) stmpe_ts_get_platform_info() argument 290 struct stmpe_touch *ts; stmpe_input_probe() local 355 struct stmpe_touch *ts = platform_get_drvdata(pdev); stmpe_ts_remove() local [all...] |
H A D | ts4800-ts.c | 50 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_open() local 53 ts->pendown = false; in ts4800_ts_open() 54 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_open() 56 error = regmap_update_bits(ts->regmap, ts->reg, ts->bit, ts->bit); in ts4800_ts_open() 58 dev_warn(ts->dev, "Failed to enable touchscreen: %d\n", error); in ts4800_ts_open() 67 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_close() local 70 ret = regmap_update_bits(ts in ts4800_ts_close() 78 struct ts4800_ts *ts = input_get_drvdata(input_dev); ts4800_ts_poll() local 109 ts4800_parse_dt(struct platform_device * pdev,struct ts4800_ts * ts) ts4800_parse_dt() argument 151 struct ts4800_ts *ts; ts4800_ts_probe() local [all...] |
H A D | st1232.c | 27 #define ST1232_TS_NAME "st1232-ts" 28 #define ST1633_TS_NAME "st1633-ts" 66 static int st1232_ts_read_data(struct st1232_ts_data *ts, u8 reg, in st1232_ts_read_data() argument 69 struct i2c_client *client = ts->client; in st1232_ts_read_data() 80 .buf = ts->read_buf, in st1232_ts_read_data() 92 static int st1232_ts_wait_ready(struct st1232_ts_data *ts) in st1232_ts_wait_ready() argument 98 error = st1232_ts_read_data(ts, REG_STATUS, 1); in st1232_ts_wait_ready() 100 switch (ts->read_buf[0]) { in st1232_ts_wait_ready() 113 static int st1232_ts_read_resolution(struct st1232_ts_data *ts, u16 *max_x, in st1232_ts_read_resolution() argument 120 error = st1232_ts_read_data(ts, REG_XY_RESOLUTIO in st1232_ts_read_resolution() 132 st1232_ts_parse_and_report(struct st1232_ts_data * ts) st1232_ts_parse_and_report() argument 182 struct st1232_ts_data *ts = dev_id; st1232_ts_irq_handler() local 207 st1232_ts_power(struct st1232_ts_data * ts,bool poweron) st1232_ts_power() argument 234 struct st1232_ts_data *ts; st1232_ts_probe() local 365 struct st1232_ts_data *ts = i2c_get_clientdata(client); st1232_ts_suspend() local 378 struct st1232_ts_data *ts = i2c_get_clientdata(client); st1232_ts_resume() local [all...] |
H A D | raydium_i2c_ts.c | 295 static int raydium_i2c_query_ts_bootloader_info(struct raydium_data *ts) in raydium_i2c_query_ts_bootloader_info() argument 297 struct i2c_client *client = ts->client; in raydium_i2c_query_ts_bootloader_info() 326 ts->info.hw_ver = cpu_to_le32(hw_ver); in raydium_i2c_query_ts_bootloader_info() 327 ts->info.main_ver = 0xff; in raydium_i2c_query_ts_bootloader_info() 328 ts->info.sub_ver = 0xff; in raydium_i2c_query_ts_bootloader_info() 333 static int raydium_i2c_query_ts_info(struct raydium_data *ts) in raydium_i2c_query_ts_info() argument 335 struct i2c_client *client = ts->client; in raydium_i2c_query_ts_info() 352 if (ts->report_data && ts->pkg_size != data_info.pkg_size) { in raydium_i2c_query_ts_info() 355 ts in raydium_i2c_query_ts_info() 386 raydium_i2c_check_fw_status(struct raydium_data * ts) raydium_i2c_check_fw_status() argument 406 raydium_i2c_initialize(struct raydium_data * ts) raydium_i2c_initialize() argument 694 raydium_i2c_do_update_firmware(struct raydium_data * ts,const struct firmware * fw) raydium_i2c_do_update_firmware() argument 815 raydium_i2c_fw_update(struct raydium_data * ts) raydium_i2c_fw_update() argument 867 raydium_mt_event(struct raydium_data * ts) raydium_mt_event() argument 902 struct raydium_data *ts = _dev; raydium_i2c_irq() local 934 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_fw_ver_show() local 943 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_hw_ver_show() local 953 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_boot_mode_show() local 965 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_update_fw_store() local 984 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_calibrate_store() local 1017 raydium_i2c_power_on(struct raydium_data * ts) raydium_i2c_power_on() argument 1056 struct raydium_data *ts = _data; raydium_i2c_power_off() local 1068 struct raydium_data *ts; raydium_i2c_probe() local 1192 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_suspend() local 1212 struct raydium_data *ts = i2c_get_clientdata(client); raydium_i2c_resume() local [all...] |
/linux/drivers/mfd/ |
H A D | ucb1x00-ts.c | 54 static inline void ucb1x00_ts_evt_add(struct ucb1x00_ts *ts, u16 pressure, u16 x, u16 y) in ucb1x00_ts_evt_add() argument 56 struct input_dev *idev = ts->idev; in ucb1x00_ts_evt_add() 65 static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts) in ucb1x00_ts_event_release() argument 67 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release() 77 static inline void ucb1x00_ts_mode_int(struct ucb1x00_ts *ts) in ucb1x00_ts_mode_int() argument 79 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_mode_int() 89 static inline unsigned int ucb1x00_ts_read_pressure(struct ucb1x00_ts *ts) in ucb1x00_ts_read_pressure() argument 92 ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); in ucb1x00_ts_read_pressure() 93 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure() 99 return ucb1x00_adc_read(ts in ucb1x00_ts_read_pressure() 116 ucb1x00_ts_read_xpos(struct ucb1x00_ts * ts) ucb1x00_ts_read_xpos() argument 143 ucb1x00_ts_read_ypos(struct ucb1x00_ts * ts) ucb1x00_ts_read_ypos() argument 169 ucb1x00_ts_read_xres(struct ucb1x00_ts * ts) ucb1x00_ts_read_xres() argument 181 ucb1x00_ts_read_yres(struct ucb1x00_ts * ts) ucb1x00_ts_read_yres() argument 189 ucb1x00_ts_pen_down(struct ucb1x00_ts * ts) ucb1x00_ts_pen_down() argument 206 struct ucb1x00_ts *ts = _ts; ucb1x00_thread() local 290 struct ucb1x00_ts *ts = id; ucb1x00_ts_irq() local 303 struct ucb1x00_ts *ts = input_get_drvdata(idev); ucb1x00_ts_open() local 349 struct ucb1x00_ts *ts = input_get_drvdata(idev); ucb1x00_ts_close() local 366 struct ucb1x00_ts *ts; ucb1x00_ts_add() local 418 struct ucb1x00_ts *ts = dev->priv; ucb1x00_ts_remove() local [all...] |
/linux/tools/perf/util/ |
H A D | thread-stack.c | 118 static int thread_stack__grow(struct thread_stack *ts) in thread_stack__grow() argument 123 new_sz = ts->sz + STACK_GROWTH; in thread_stack__grow() 126 new_stack = realloc(ts->stack, sz); in thread_stack__grow() 130 ts->stack = new_stack; in thread_stack__grow() 131 ts->sz = new_sz; in thread_stack__grow() 136 static int thread_stack__init(struct thread_stack *ts, struct thread *thread, in thread_stack__init() argument 143 err = thread_stack__grow(ts); in thread_stack__init() 152 ts->br_stack_rb = zalloc(sz); in thread_stack__init() 153 if (!ts->br_stack_rb) in thread_stack__init() 155 ts in thread_stack__init() 178 struct thread_stack *ts = thread__ts(thread), *new_ts; thread_stack__new() local 210 struct thread_stack *ts = thread__ts(thread); thread__cpu_stack() local 238 thread_stack__push(struct thread_stack * ts,u64 ret_addr,bool trace_end) thread_stack__push() argument 257 thread_stack__pop(struct thread_stack * ts,u64 ret_addr) thread_stack__pop() argument 278 thread_stack__pop_trace_end(struct thread_stack * ts) thread_stack__pop_trace_end() argument 290 thread_stack__in_kernel(struct thread_stack * ts) thread_stack__in_kernel() argument 299 thread_stack__call_return(struct thread * thread,struct thread_stack * ts,size_t idx,u64 timestamp,u64 ref,bool no_return) thread_stack__call_return() argument 338 __thread_stack__flush(struct thread * thread,struct thread_stack * ts) __thread_stack__flush() argument 366 struct thread_stack *ts = thread__ts(thread); thread_stack__flush() local 382 thread_stack__update_br_stack(struct thread_stack * ts,u32 flags,u64 from_ip,u64 to_ip) thread_stack__update_br_stack() argument 410 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__event() local 475 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__set_trace_nr() local 487 __thread_stack__free(struct thread * thread,struct thread_stack * ts) __thread_stack__free() argument 494 thread_stack__reset(struct thread * thread,struct thread_stack * ts) thread_stack__reset() argument 505 struct thread_stack *ts = thread__ts(thread); thread_stack__free() local 525 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__sample() local 568 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__sample_late() local 620 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__br_sample() local 682 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__br_sample_late() local 782 thread_stack__push_cp(struct thread_stack * ts,u64 ret_addr,u64 timestamp,u64 ref,struct call_path * cp,bool no_call,bool trace_end) thread_stack__push_cp() argument 814 thread_stack__pop_cp(struct thread * thread,struct thread_stack * ts,u64 ret_addr,u64 timestamp,u64 ref,struct symbol * sym) thread_stack__pop_cp() argument 859 thread_stack__bottom(struct thread_stack * ts,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref) thread_stack__bottom() argument 886 thread_stack__pop_ks(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,u64 ref) thread_stack__pop_ks() argument 904 thread_stack__no_call_return(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref) thread_stack__no_call_return() argument 998 thread_stack__trace_begin(struct thread * thread,struct thread_stack * ts,u64 timestamp,u64 ref) thread_stack__trace_begin() argument 1019 thread_stack__trace_end(struct thread_stack * ts,struct perf_sample * sample,u64 ref) thread_stack__trace_end() argument 1049 thread_stack__x86_retpoline(struct thread_stack * ts,struct perf_sample * sample,struct addr_location * to_al) thread_stack__x86_retpoline() argument 1107 struct thread_stack *ts = thread__stack(thread, sample->cpu); thread_stack__process() local 1234 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__depth() local [all...] |
/linux/drivers/gpio/ |
H A D | gpio-max730x.c | 50 struct max7301 *ts = container_of(chip, struct max7301, chip); in max7301_direction_input() local 59 config = &ts->port_config[offset >> 2]; in max7301_direction_input() 61 if (ts->input_pullup_active & BIT(offset)) in max7301_direction_input() 66 mutex_lock(&ts->lock); in max7301_direction_input() 71 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_input() 73 mutex_unlock(&ts->lock); in max7301_direction_input() 78 static int __max7301_set(struct max7301 *ts, unsigned offset, int value) in __max7301_set() argument 81 ts->out_level |= 1 << offset; in __max7301_set() 82 return ts in __max7301_set() 92 struct max7301 *ts = container_of(chip, struct max7301, chip); max7301_direction_output() local 120 struct max7301 *ts = gpiochip_get_data(chip); max7301_get() local 148 struct max7301 *ts = gpiochip_get_data(chip); max7301_set() local 163 __max730x_probe(struct max7301 * ts) __max730x_probe() argument 225 struct max7301 *ts = dev_get_drvdata(dev); __max730x_remove() local [all...] |
/linux/drivers/iio/common/inv_sensors/ |
H A D | inv_sensors_timestamp.c | 41 void inv_sensors_timestamp_init(struct inv_sensors_timestamp *ts, in inv_sensors_timestamp_init() argument 44 memset(ts, 0, sizeof(*ts)); in inv_sensors_timestamp_init() 47 ts->chip = *chip; in inv_sensors_timestamp_init() 48 ts->min_period = INV_SENSORS_TIMESTAMP_MIN(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init() 49 ts->max_period = INV_SENSORS_TIMESTAMP_MAX(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init() 52 ts->mult = chip->init_period / chip->clock_period; in inv_sensors_timestamp_init() 53 ts->period = chip->init_period; in inv_sensors_timestamp_init() 56 inv_update_acc(&ts->chip_period, chip->clock_period); in inv_sensors_timestamp_init() 60 int inv_sensors_timestamp_update_odr(struct inv_sensors_timestamp *ts, in inv_sensors_timestamp_update_odr() argument 81 inv_validate_period(struct inv_sensors_timestamp * ts,uint32_t period) inv_validate_period() argument 94 inv_update_chip_period(struct inv_sensors_timestamp * ts,uint32_t period) inv_update_chip_period() argument 110 inv_align_timestamp_it(struct inv_sensors_timestamp * ts) inv_align_timestamp_it() argument 135 inv_sensors_timestamp_interrupt(struct inv_sensors_timestamp * ts,size_t sample_nb,int64_t timestamp) inv_sensors_timestamp_interrupt() argument 171 inv_sensors_timestamp_apply_odr(struct inv_sensors_timestamp * ts,uint32_t fifo_period,size_t fifo_nb,unsigned int fifo_no) inv_sensors_timestamp_apply_odr() argument [all...] |
/linux/drivers/hid/ |
H A D | hid-goodix-spi.c | 112 static void *goodix_get_event_report(struct goodix_ts_data *ts, u32 addr, in goodix_get_event_report() argument 115 struct spi_device *spi = to_spi_device(&ts->spi->dev); in goodix_get_event_report() 133 dev_err(ts->dev, "spi transfer error: %d", error); in goodix_get_event_report() 140 static int goodix_spi_read(struct goodix_ts_data *ts, u32 addr, in goodix_spi_read() argument 143 struct spi_device *spi = to_spi_device(&ts->spi->dev); in goodix_spi_read() 148 if (GOODIX_SPI_READ_PREFIX_LEN + len > sizeof(ts->xfer_buf)) { in goodix_spi_read() 149 dev_err(ts->dev, "read data len exceed limit %zu", in goodix_spi_read() 150 sizeof(ts->xfer_buf) - GOODIX_SPI_READ_PREFIX_LEN); in goodix_spi_read() 155 ts->xfer_buf[0] = GOODIX_SPI_READ_FLAG; in goodix_spi_read() 156 put_unaligned_be32(addr, ts in goodix_spi_read() 174 goodix_spi_write(struct goodix_ts_data * ts,u32 addr,const void * data,size_t len) goodix_spi_write() argument 206 goodix_dev_confirm(struct goodix_ts_data * ts) goodix_dev_confirm() argument 247 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_parse() local 297 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_start() local 326 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_open() local 334 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_close() local 340 goodix_hid_check_ack_status(struct goodix_ts_data * ts,u32 * resp_len) goodix_hid_check_ack_status() argument 391 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_get_raw_report() local 491 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_set_raw_report() local 539 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_raw_request() local 571 struct goodix_ts_data *ts = data; goodix_hid_irq() local 634 goodix_hid_init(struct goodix_ts_data * ts) goodix_hid_init() argument 676 struct goodix_ts_data *ts; goodix_spi_probe() local 737 struct goodix_ts_data *ts = spi_get_drvdata(spi); goodix_spi_remove() local 743 goodix_spi_set_power(struct goodix_ts_data * ts,int power_state) goodix_spi_set_power() argument 764 struct goodix_ts_data *ts = dev_get_drvdata(dev); goodix_spi_suspend() local 772 struct goodix_ts_data *ts = dev_get_drvdata(dev); goodix_spi_resume() local [all...] |
/linux/drivers/thermal/tegra/ |
H A D | tegra30-tsensor.c | 76 struct tegra_tsensor *ts; member 90 static int tegra_tsensor_hw_enable(const struct tegra_tsensor *ts) in tegra_tsensor_hw_enable() argument 95 err = reset_control_assert(ts->rst); in tegra_tsensor_hw_enable() 97 dev_err(ts->dev, "failed to assert hardware reset: %d\n", err); in tegra_tsensor_hw_enable() 101 err = clk_prepare_enable(ts->clk); in tegra_tsensor_hw_enable() 103 dev_err(ts->dev, "failed to enable clock: %d\n", err); in tegra_tsensor_hw_enable() 109 err = reset_control_deassert(ts->rst); in tegra_tsensor_hw_enable() 111 dev_err(ts->dev, "failed to deassert hardware reset: %d\n", err); in tegra_tsensor_hw_enable() 128 writel_relaxed(val, ts->regs + 0x40 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable() 129 writel_relaxed(val, ts in tegra_tsensor_hw_enable() 139 tegra_tsensor_hw_disable(const struct tegra_tsensor * ts) tegra_tsensor_hw_disable() argument 156 const struct tegra_tsensor *ts = data; devm_tegra_tsensor_hw_disable() local 164 const struct tegra_tsensor *ts = tsc->ts; tegra_tsensor_get_temp() local 209 tegra_tsensor_temp_to_counter(const struct tegra_tsensor * ts,int temp) tegra_tsensor_temp_to_counter() argument 222 const struct tegra_tsensor *ts = tsc->ts; tegra_tsensor_set_trips() local 248 tegra_tsensor_handle_channel_interrupt(const struct tegra_tsensor * ts,unsigned int id) tegra_tsensor_handle_channel_interrupt() argument 270 const struct tegra_tsensor *ts = data; tegra_tsensor_isr() local 280 tegra_tsensor_disable_hw_channel(const struct tegra_tsensor * ts,unsigned int id) tegra_tsensor_disable_hw_channel() argument 348 tegra_tsensor_enable_hw_channel(const struct tegra_tsensor * ts,unsigned int id) tegra_tsensor_enable_hw_channel() argument 427 tegra_tsensor_nvmem_setup(struct tegra_tsensor * ts) tegra_tsensor_nvmem_setup() argument 507 tegra_tsensor_register_channel(struct tegra_tsensor * ts,unsigned int id) tegra_tsensor_register_channel() argument 538 struct tegra_tsensor *ts; tegra_tsensor_probe() local 613 struct tegra_tsensor *ts = dev_get_drvdata(dev); tegra_tsensor_suspend() local 638 struct tegra_tsensor *ts = dev_get_drvdata(dev); tegra_tsensor_resume() local [all...] |