/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | cyttsp_core.c | 70 static int ttsp_read_block_data(struct cyttsp *ts, u8 command, in ttsp_read_block_data() argument 77 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 88 static int ttsp_write_block_data(struct cyttsp *ts, u8 command, in ttsp_write_block_data() argument 95 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 106 static int ttsp_send_command(struct cyttsp *ts, u8 cmd) in ttsp_send_command() argument 108 return ttsp_write_block_data(ts, CY_REG_BAS in ttsp_send_command() 111 cyttsp_handshake(struct cyttsp *ts) cyttsp_handshake() argument 120 cyttsp_load_bl_regs(struct cyttsp *ts) cyttsp_load_bl_regs() argument 129 cyttsp_exit_bl_mode(struct cyttsp *ts) cyttsp_exit_bl_mode() argument 157 cyttsp_set_operational_mode(struct cyttsp *ts) cyttsp_set_operational_mode() argument 178 cyttsp_set_sysinfo_mode(struct cyttsp *ts) cyttsp_set_sysinfo_mode() argument 206 cyttsp_set_sysinfo_regs(struct cyttsp *ts) cyttsp_set_sysinfo_regs() argument 229 cyttsp_hard_reset(struct cyttsp *ts) cyttsp_hard_reset() argument 239 cyttsp_soft_reset(struct cyttsp *ts) cyttsp_soft_reset() argument 264 cyttsp_act_dist_setup(struct cyttsp *ts) cyttsp_act_dist_setup() argument 298 cyttsp_report_tchdata(struct cyttsp *ts) cyttsp_report_tchdata() argument 351 struct cyttsp *ts = handle; cyttsp_irq() local 393 cyttsp_power_on(struct cyttsp *ts) cyttsp_power_on() argument 439 cyttsp_enable(struct cyttsp *ts) cyttsp_enable() argument 462 cyttsp_disable(struct cyttsp *ts) cyttsp_disable() argument 477 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_suspend() local 495 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_resume() local 514 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_open() local 525 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_close() local 531 cyttsp_parse_properties(struct cyttsp *ts) cyttsp_parse_properties() argument 603 struct cyttsp *ts; cyttsp_probe() 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 = from_timer(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 398 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_input() local 412 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_output() local 431 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_get_value() local 444 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_set_value() local 456 ad7879_gpio_add(struct ad7879 *ts) ad7879_gpio_add() argument 485 ad7879_gpio_add(struct ad7879 *ts) ad7879_gpio_add() argument 491 ad7879_parse_dt(struct device *dev, struct ad7879 *ts) ad7879_parse_dt() argument 520 struct ad7879 *ts; ad7879_probe() local [all...] |
H A D | tsc200x-core.c | 112 static void tsc200x_update_pen_state(struct tsc200x *ts, in tsc200x_update_pen_state() argument 116 input_report_abs(ts->idev, ABS_X, x); in tsc200x_update_pen_state() 117 input_report_abs(ts->idev, ABS_Y, y); in tsc200x_update_pen_state() 118 input_report_abs(ts->idev, ABS_PRESSURE, pressure); in tsc200x_update_pen_state() 119 if (!ts->pen_down) { in tsc200x_update_pen_state() 120 input_report_key(ts->idev, BTN_TOUCH, !!pressure); in tsc200x_update_pen_state() 121 ts->pen_down = true; in tsc200x_update_pen_state() 124 input_report_abs(ts->idev, ABS_PRESSURE, 0); in tsc200x_update_pen_state() 125 if (ts->pen_down) { in tsc200x_update_pen_state() 126 input_report_key(ts in tsc200x_update_pen_state() 137 struct tsc200x *ts = _ts; tsc200x_irq_thread() local 199 struct tsc200x *ts = from_timer(ts, t, penup_timer); tsc200x_penup_timer() local 207 tsc200x_start_scan(struct tsc200x *ts) tsc200x_start_scan() argument 215 tsc200x_stop_scan(struct tsc200x *ts) tsc200x_stop_scan() argument 220 tsc200x_reset(struct tsc200x *ts) tsc200x_reset() argument 230 __tsc200x_disable(struct tsc200x *ts) __tsc200x_disable() argument 243 __tsc200x_enable(struct tsc200x *ts) __tsc200x_enable() argument 259 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_selftest_show() local 342 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_attr_is_visible() local 360 struct tsc200x *ts = container_of(work, struct tsc200x, esd_work.work); tsc200x_esd_work() local 412 struct tsc200x *ts = input_get_drvdata(input); tsc200x_open() local 428 struct tsc200x *ts = input_get_drvdata(input); tsc200x_close() local 444 struct tsc200x *ts; tsc200x_probe() local 582 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_remove() local 594 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_suspend() local 610 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_resume() local [all...] |
H A D | goodix.c | 83 int (*check_config)(struct goodix_ts_data *ts, const u8 *cfg, int len); 84 void (*calc_config_checksum)(struct goodix_ts_data *ts); 120 static int goodix_check_cfg_8(struct goodix_ts_data *ts, 122 static int goodix_check_cfg_16(struct goodix_ts_data *ts, 124 static void goodix_calc_cfg_checksum_8(struct goodix_ts_data *ts); 125 static void goodix_calc_cfg_checksum_16(struct goodix_ts_data *ts); 299 static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data) in goodix_ts_read_input_report() argument 307 * ts->contact_size * max(1, touch_num) bytes of coordinates in goodix_ts_read_input_report() 310 const int header_contact_keycode_size = 1 + ts->contact_size + 1; in goodix_ts_read_input_report() 319 error = goodix_i2c_read(ts in goodix_ts_read_input_report() 356 goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data) goodix_ts_report_touch_8b() argument 371 goodix_ts_report_touch_9b(struct goodix_ts_data *ts, u8 *coor_data) goodix_ts_report_touch_9b() argument 386 goodix_ts_report_key(struct goodix_ts_data *ts, u8 *data) goodix_ts_report_key() argument 413 goodix_process_events(struct goodix_ts_data *ts) goodix_process_events() argument 445 struct goodix_ts_data *ts = dev_id; goodix_ts_irq_handler() local 455 goodix_free_irq(struct goodix_ts_data *ts) goodix_free_irq() argument 460 goodix_request_irq(struct goodix_ts_data *ts) goodix_request_irq() argument 467 goodix_check_cfg_8(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg_8() argument 490 goodix_calc_cfg_checksum_8(struct goodix_ts_data *ts) goodix_calc_cfg_checksum_8() argument 503 goodix_check_cfg_16(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg_16() argument 527 goodix_calc_cfg_checksum_16(struct goodix_ts_data *ts) goodix_calc_cfg_checksum_16() argument 546 goodix_check_cfg(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg() argument 564 goodix_send_cfg(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_send_cfg() argument 587 goodix_pin_acpi_direction_input(struct goodix_ts_data *ts) goodix_pin_acpi_direction_input() argument 596 goodix_pin_acpi_output_method(struct goodix_ts_data *ts, int value) goodix_pin_acpi_output_method() argument 605 goodix_pin_acpi_direction_input(struct goodix_ts_data *ts) goodix_pin_acpi_direction_input() argument 612 goodix_pin_acpi_output_method(struct goodix_ts_data *ts, int value) goodix_pin_acpi_output_method() argument 620 goodix_irq_direction_output(struct goodix_ts_data *ts, int value) goodix_irq_direction_output() argument 643 goodix_irq_direction_input(struct goodix_ts_data *ts) goodix_irq_direction_input() argument 662 goodix_int_sync(struct goodix_ts_data *ts) goodix_int_sync() argument 684 goodix_reset(struct goodix_ts_data *ts) goodix_reset() argument 758 struct goodix_ts_data *ts = data; goodix_resource() local 789 goodix_add_acpi_gpio_mappings(struct goodix_ts_data *ts) goodix_add_acpi_gpio_mappings() argument 851 goodix_add_acpi_gpio_mappings(struct goodix_ts_data *ts) goodix_add_acpi_gpio_mappings() argument 862 goodix_get_gpio_config(struct goodix_ts_data *ts) goodix_get_gpio_config() argument 956 goodix_read_config(struct goodix_ts_data *ts) goodix_read_config() argument 989 goodix_read_version(struct goodix_ts_data *ts) goodix_read_version() argument 1048 goodix_configure_dev(struct goodix_ts_data *ts) goodix_configure_dev() argument 1167 struct goodix_ts_data *ts = ctx; goodix_config_cb() local 1186 struct goodix_ts_data *ts = arg; goodix_disable_regulators() local 1195 struct goodix_ts_data *ts; goodix_ts_probe() local 1300 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_ts_remove() local 1311 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_suspend() local 1356 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_resume() local [all...] |
H A D | s3c2410_ts.c | 108 static struct s3c2410ts ts; variable 130 data0 = readl(ts.io + S3C2410_ADCDAT0); in touch_timer_fire() 131 data1 = readl(ts.io + S3C2410_ADCDAT1); in touch_timer_fire() 136 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() 140 dev_dbg(ts in touch_timer_fire() [all...] |
H A D | ads7846.c | 220 static int get_pendown_state(struct ads7846 *ts) in get_pendown_state() argument 222 if (ts->get_pendown_state) in get_pendown_state() 223 return ts->get_pendown_state(); in get_pendown_state() 225 return !gpio_get_value(ts->gpio_pendown); in get_pendown_state() 228 static void ads7846_report_pen_up(struct ads7846 *ts) in ads7846_report_pen_up() argument 230 struct input_dev *input = ts->input; in ads7846_report_pen_up() 236 ts->pendown = false; in ads7846_report_pen_up() 237 dev_vdbg(&ts->spi->dev, "UP\n"); in ads7846_report_pen_up() 240 /* Must be called with ts->lock held */ 241 static void ads7846_stop(struct ads7846 *ts) in ads7846_stop() argument 253 ads7846_restart(struct ads7846 *ts) ads7846_restart() argument 268 __ads7846_disable(struct ads7846 *ts) __ads7846_disable() argument 280 __ads7846_enable(struct ads7846 *ts) __ads7846_enable() argument 291 ads7846_disable(struct ads7846 *ts) ads7846_disable() argument 306 ads7846_enable(struct ads7846 *ts) ads7846_enable() argument 357 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_read12_ser() local 432 struct ads7846 *ts = dev_get_drvdata(dev); ads7845_read12_ser() local 485 null_adjust(struct ads7846 *ts, ssize_t v) null_adjust() argument 498 vaux_adjust(struct ads7846 *ts, ssize_t v) vaux_adjust() argument 509 vbatt_adjust(struct ads7846 *ts, ssize_t v) vbatt_adjust() argument 527 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_is_visible() local 551 ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_register() argument 579 ads784x_hwmon_unregister(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_unregister() argument 587 ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_register() argument 593 ads784x_hwmon_unregister(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_unregister() 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 657 struct ads7846 *ts = ads; ads7846_debounce_filter() local 712 ads7846_set_cmd_val(struct ads7846 *ts, enum ads7846_cmds cmd_idx, u16 val) ads7846_set_cmd_val() argument 774 ads7846_filter(struct ads7846 *ts) ads7846_filter() argument 807 ads7846_read_state(struct ads7846 *ts) ads7846_read_state() argument 835 ads7846_report_state(struct ads7846 *ts) ads7846_report_state() argument 919 struct ads7846 *ts = handle; ads7846_hard_irq() local 927 struct ads7846 *ts = handle; ads7846_irq() local 952 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_suspend() local 974 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_resume() local 996 ads7846_setup_pendown(struct spi_device *spi, struct ads7846 *ts, const struct ads7846_platform_data *pdata) ads7846_setup_pendown() argument 1038 ads7846_setup_spi_msg(struct ads7846 *ts, const struct ads7846_platform_data *pdata) ads7846_setup_spi_msg() argument 1221 struct ads7846 *ts; ads7846_probe() local 1442 struct ads7846 *ts = spi_get_drvdata(spi); ads7846_remove() local [all...] |
H A D | sun4i-ts.c | 12 * The sun4i-ts controller is capable of detecting a second touch, but when a 117 static void sun4i_ts_irq_handle_input(struct sun4i_ts_data *ts, u32 reg_val) in sun4i_ts_irq_handle_input() argument 122 x = readl(ts->base + TP_DATA); in sun4i_ts_irq_handle_input() 123 y = readl(ts->base + TP_DATA); in sun4i_ts_irq_handle_input() 125 if (!ts->ignore_fifo_data) { in sun4i_ts_irq_handle_input() 126 input_report_abs(ts->input, ABS_X, x); in sun4i_ts_irq_handle_input() 127 input_report_abs(ts->input, ABS_Y, y); in sun4i_ts_irq_handle_input() 133 input_report_key(ts->input, BTN_TOUCH, 1); in sun4i_ts_irq_handle_input() 134 input_sync(ts->input); in sun4i_ts_irq_handle_input() 136 ts in sun4i_ts_irq_handle_input() 149 struct sun4i_ts_data *ts = dev_id; sun4i_ts_irq() local 167 struct sun4i_ts_data *ts = input_get_drvdata(dev); sun4i_ts_open() local 178 struct sun4i_ts_data *ts = input_get_drvdata(dev); sun4i_ts_close() local 184 sun4i_get_temp(const struct sun4i_ts_data *ts, int *temp) sun4i_get_temp() argument 207 struct sun4i_ts_data *ts = dev_get_drvdata(dev); show_temp() local 236 struct sun4i_ts_data *ts; sun4i_ts_probe() local 380 struct sun4i_ts_data *ts = platform_get_drvdata(pdev); sun4i_ts_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
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 = from_timer(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 398 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_input() local 412 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_direction_output() local 431 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_get_value() local 444 struct ad7879 *ts = gpiochip_get_data(chip); ad7879_gpio_set_value() local 456 ad7879_gpio_add(struct ad7879 *ts) ad7879_gpio_add() argument 485 ad7879_gpio_add(struct ad7879 *ts) ad7879_gpio_add() argument 491 ad7879_parse_dt(struct device *dev, struct ad7879 *ts) ad7879_parse_dt() argument 520 struct ad7879 *ts; ad7879_probe() local [all...] |
H A D | goodix.c | 61 static int goodix_check_cfg_8(struct goodix_ts_data *ts, 63 static int goodix_check_cfg_16(struct goodix_ts_data *ts, 65 static void goodix_calc_cfg_checksum_8(struct goodix_ts_data *ts); 66 static void goodix_calc_cfg_checksum_16(struct goodix_ts_data *ts); 251 static int goodix_ts_read_input_report(struct goodix_ts_data *ts, u8 *data) in goodix_ts_read_input_report() argument 259 * ts->contact_size * max(1, touch_num) bytes of coordinates in goodix_ts_read_input_report() 262 const int header_contact_keycode_size = 1 + ts->contact_size + 1; in goodix_ts_read_input_report() 271 error = goodix_i2c_read(ts->client, addr, data, in goodix_ts_read_input_report() 278 if (touch_num > ts->max_touch_num) in goodix_ts_read_input_report() 284 error = goodix_i2c_read(ts in goodix_ts_read_input_report() 310 goodix_create_pen_input(struct goodix_ts_data *ts) goodix_create_pen_input() argument 348 goodix_ts_report_pen_down(struct goodix_ts_data *ts, u8 *data) goodix_ts_report_pen_down() argument 389 goodix_ts_report_pen_up(struct goodix_ts_data *ts) goodix_ts_report_pen_up() argument 402 goodix_ts_report_touch_8b(struct goodix_ts_data *ts, u8 *coor_data) goodix_ts_report_touch_8b() argument 417 goodix_ts_report_touch_9b(struct goodix_ts_data *ts, u8 *coor_data) goodix_ts_report_touch_9b() argument 432 goodix_ts_release_keys(struct goodix_ts_data *ts) goodix_ts_release_keys() argument 440 goodix_ts_report_key(struct goodix_ts_data *ts, u8 *data) goodix_ts_report_key() argument 466 goodix_process_events(struct goodix_ts_data *ts) goodix_process_events() argument 508 struct goodix_ts_data *ts = dev_id; goodix_ts_irq_handler() local 516 goodix_free_irq(struct goodix_ts_data *ts) goodix_free_irq() argument 521 goodix_request_irq(struct goodix_ts_data *ts) goodix_request_irq() argument 528 goodix_check_cfg_8(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg_8() argument 551 goodix_calc_cfg_checksum_8(struct goodix_ts_data *ts) goodix_calc_cfg_checksum_8() argument 564 goodix_check_cfg_16(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg_16() argument 588 goodix_calc_cfg_checksum_16(struct goodix_ts_data *ts) goodix_calc_cfg_checksum_16() argument 608 goodix_check_cfg(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_check_cfg() argument 627 goodix_send_cfg(struct goodix_ts_data *ts, const u8 *cfg, int len) goodix_send_cfg() argument 648 goodix_pin_acpi_direction_input(struct goodix_ts_data *ts) goodix_pin_acpi_direction_input() argument 657 goodix_pin_acpi_output_method(struct goodix_ts_data *ts, int value) goodix_pin_acpi_output_method() argument 666 goodix_pin_acpi_direction_input(struct goodix_ts_data *ts) goodix_pin_acpi_direction_input() argument 673 goodix_pin_acpi_output_method(struct goodix_ts_data *ts, int value) goodix_pin_acpi_output_method() argument 681 goodix_irq_direction_output(struct goodix_ts_data *ts, int value) goodix_irq_direction_output() argument 704 goodix_irq_direction_input(struct goodix_ts_data *ts) goodix_irq_direction_input() argument 723 goodix_int_sync(struct goodix_ts_data *ts) goodix_int_sync() argument 749 goodix_reset_no_int_sync(struct goodix_ts_data *ts) goodix_reset_no_int_sync() argument 796 goodix_reset(struct goodix_ts_data *ts) goodix_reset() argument 830 struct goodix_ts_data *ts = data; goodix_resource() local 855 goodix_add_acpi_gpio_mappings(struct goodix_ts_data *ts) goodix_add_acpi_gpio_mappings() argument 945 goodix_add_acpi_gpio_mappings(struct goodix_ts_data *ts) goodix_add_acpi_gpio_mappings() argument 956 goodix_get_gpio_config(struct goodix_ts_data *ts) goodix_get_gpio_config() argument 1038 goodix_read_config(struct goodix_ts_data *ts) goodix_read_config() argument 1076 goodix_read_version(struct goodix_ts_data *ts) goodix_read_version() argument 1130 goodix_configure_dev(struct goodix_ts_data *ts) goodix_configure_dev() argument 1261 struct goodix_ts_data *ts = ctx; goodix_config_cb() local 1289 struct goodix_ts_data *ts = arg; goodix_disable_regulators() local 1297 struct goodix_ts_data *ts; goodix_ts_probe() local 1408 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_ts_remove() local 1417 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_suspend() local 1464 struct goodix_ts_data *ts = i2c_get_clientdata(client); goodix_resume() local [all...] |
H A D | tsc200x-core.c | 114 static void tsc200x_update_pen_state(struct tsc200x *ts, in tsc200x_update_pen_state() argument 118 touchscreen_report_pos(ts->idev, &ts->prop, x, y, false); in tsc200x_update_pen_state() 119 input_report_abs(ts->idev, ABS_PRESSURE, pressure); in tsc200x_update_pen_state() 120 if (!ts->pen_down) { in tsc200x_update_pen_state() 121 input_report_key(ts->idev, BTN_TOUCH, !!pressure); in tsc200x_update_pen_state() 122 ts->pen_down = true; in tsc200x_update_pen_state() 125 input_report_abs(ts->idev, ABS_PRESSURE, 0); in tsc200x_update_pen_state() 126 if (ts->pen_down) { in tsc200x_update_pen_state() 127 input_report_key(ts in tsc200x_update_pen_state() 138 struct tsc200x *ts = _ts; tsc200x_irq_thread() local 200 struct tsc200x *ts = from_timer(ts, t, penup_timer); tsc200x_penup_timer() local 208 tsc200x_start_scan(struct tsc200x *ts) tsc200x_start_scan() argument 216 tsc200x_stop_scan(struct tsc200x *ts) tsc200x_stop_scan() argument 221 tsc200x_reset(struct tsc200x *ts) tsc200x_reset() argument 231 __tsc200x_disable(struct tsc200x *ts) __tsc200x_disable() argument 244 __tsc200x_enable(struct tsc200x *ts) __tsc200x_enable() argument 260 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_selftest_show() local 343 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_attr_is_visible() local 361 struct tsc200x *ts = container_of(work, struct tsc200x, esd_work.work); tsc200x_esd_work() local 413 struct tsc200x *ts = input_get_drvdata(input); tsc200x_open() local 429 struct tsc200x *ts = input_get_drvdata(input); tsc200x_close() local 445 struct tsc200x *ts; tsc200x_probe() local 583 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_remove() local 593 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_suspend() local 609 struct tsc200x *ts = dev_get_drvdata(dev); tsc200x_resume() local [all...] |
H A D | cyttsp_core.c | 78 static int ttsp_read_block_data(struct cyttsp *ts, u8 command, in ttsp_read_block_data() argument 85 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 96 static int ttsp_write_block_data(struct cyttsp *ts, u8 command, in ttsp_write_block_data() argument 103 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 114 static int ttsp_send_command(struct cyttsp *ts, u8 cmd) in ttsp_send_command() argument 116 return ttsp_write_block_data(ts, CY_REG_BAS in ttsp_send_command() 119 cyttsp_handshake(struct cyttsp *ts) cyttsp_handshake() argument 128 cyttsp_load_bl_regs(struct cyttsp *ts) cyttsp_load_bl_regs() argument 137 cyttsp_exit_bl_mode(struct cyttsp *ts) cyttsp_exit_bl_mode() argument 165 cyttsp_set_operational_mode(struct cyttsp *ts) cyttsp_set_operational_mode() argument 186 cyttsp_set_sysinfo_mode(struct cyttsp *ts) cyttsp_set_sysinfo_mode() argument 214 cyttsp_set_sysinfo_regs(struct cyttsp *ts) cyttsp_set_sysinfo_regs() argument 237 cyttsp_hard_reset(struct cyttsp *ts) cyttsp_hard_reset() argument 253 cyttsp_soft_reset(struct cyttsp *ts) cyttsp_soft_reset() argument 281 cyttsp_act_dist_setup(struct cyttsp *ts) cyttsp_act_dist_setup() argument 315 cyttsp_report_tchdata(struct cyttsp *ts) cyttsp_report_tchdata() argument 368 struct cyttsp *ts = handle; cyttsp_irq() local 410 cyttsp_power_on(struct cyttsp *ts) cyttsp_power_on() argument 458 cyttsp_enable(struct cyttsp *ts) cyttsp_enable() argument 481 cyttsp_disable(struct cyttsp *ts) cyttsp_disable() argument 496 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_suspend() local 514 struct cyttsp *ts = dev_get_drvdata(dev); cyttsp_resume() local 532 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_open() local 543 struct cyttsp *ts = input_get_drvdata(dev); cyttsp_close() local 549 cyttsp_parse_properties(struct cyttsp *ts) cyttsp_parse_properties() argument 620 struct cyttsp *ts = _ts; cyttsp_disable_regulators() local 629 struct cyttsp *ts; cyttsp_probe() local [all...] |
H A D | tsc2007_core.c | 89 bool tsc2007_is_pen_down(struct tsc2007 *ts) in tsc2007_is_pen_down() argument 105 if (!ts->get_pendown_state) in tsc2007_is_pen_down() 108 return ts->get_pendown_state(&ts->client->dev); in tsc2007_is_pen_down() 113 struct tsc2007 *ts = handle; in tsc2007_soft_irq() local 114 struct input_dev *input = ts->input; in tsc2007_soft_irq() 118 while (!ts->stopped && tsc2007_is_pen_down(ts)) { in tsc2007_soft_irq() 122 mutex_lock(&ts->mlock); in tsc2007_soft_irq() 123 tsc2007_read_values(ts, in tsc2007_soft_irq() 175 tsc2007_stop(struct tsc2007 *ts) tsc2007_stop() argument 186 struct tsc2007 *ts = input_get_drvdata(input_dev); tsc2007_open() local 206 struct tsc2007 *ts = input_get_drvdata(input_dev); tsc2007_close() local 214 struct tsc2007 *ts = i2c_get_clientdata(client); tsc2007_get_pendown_state_gpio() local 219 tsc2007_probe_properties(struct device *dev, struct tsc2007 *ts) tsc2007_probe_properties() argument 262 tsc2007_probe_pdev(struct device *dev, struct tsc2007 *ts, const struct tsc2007_platform_data *pdata, const struct i2c_device_id *id) tsc2007_probe_pdev() argument 297 struct tsc2007 *ts; tsc2007_probe() local [all...] |
H A D | sun4i-ts.c | 12 * The sun4i-ts controller is capable of detecting a second touch, but when a 117 static void sun4i_ts_irq_handle_input(struct sun4i_ts_data *ts, u32 reg_val) in sun4i_ts_irq_handle_input() argument 122 x = readl(ts->base + TP_DATA); in sun4i_ts_irq_handle_input() 123 y = readl(ts->base + TP_DATA); in sun4i_ts_irq_handle_input() 125 if (!ts->ignore_fifo_data) { in sun4i_ts_irq_handle_input() 126 input_report_abs(ts->input, ABS_X, x); in sun4i_ts_irq_handle_input() 127 input_report_abs(ts->input, ABS_Y, y); in sun4i_ts_irq_handle_input() 133 input_report_key(ts->input, BTN_TOUCH, 1); in sun4i_ts_irq_handle_input() 134 input_sync(ts->input); in sun4i_ts_irq_handle_input() 136 ts in sun4i_ts_irq_handle_input() 149 struct sun4i_ts_data *ts = dev_id; sun4i_ts_irq() local 167 struct sun4i_ts_data *ts = input_get_drvdata(dev); sun4i_ts_open() local 178 struct sun4i_ts_data *ts = input_get_drvdata(dev); sun4i_ts_close() local 184 sun4i_get_temp(const struct sun4i_ts_data *ts, int *temp) sun4i_get_temp() argument 207 struct sun4i_ts_data *ts = dev_get_drvdata(dev); show_temp() local 236 struct sun4i_ts_data *ts; sun4i_ts_probe() local 380 struct sun4i_ts_data *ts = platform_get_drvdata(pdev); sun4i_ts_remove() local [all...] |
H A D | ads7846.c | 218 static int get_pendown_state(struct ads7846 *ts) in get_pendown_state() argument 220 if (ts->get_pendown_state) in get_pendown_state() 221 return ts->get_pendown_state(); in get_pendown_state() 223 return gpiod_get_value(ts->gpio_pendown); in get_pendown_state() 226 static void ads7846_report_pen_up(struct ads7846 *ts) in ads7846_report_pen_up() argument 228 struct input_dev *input = ts->input; in ads7846_report_pen_up() 234 ts->pendown = false; in ads7846_report_pen_up() 235 dev_vdbg(&ts->spi->dev, "UP\n"); in ads7846_report_pen_up() 238 /* Must be called with ts->lock held */ 239 static void ads7846_stop(struct ads7846 *ts) in ads7846_stop() argument 251 ads7846_restart(struct ads7846 *ts) ads7846_restart() argument 266 __ads7846_disable(struct ads7846 *ts) __ads7846_disable() argument 278 __ads7846_enable(struct ads7846 *ts) __ads7846_enable() argument 289 ads7846_disable(struct ads7846 *ts) ads7846_disable() argument 304 ads7846_enable(struct ads7846 *ts) ads7846_enable() argument 355 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_read12_ser() local 430 struct ads7846 *ts = dev_get_drvdata(dev); ads7845_read12_ser() local 483 null_adjust(struct ads7846 *ts, ssize_t v) null_adjust() argument 496 vaux_adjust(struct ads7846 *ts, ssize_t v) vaux_adjust() argument 507 vbatt_adjust(struct ads7846 *ts, ssize_t v) vbatt_adjust() argument 525 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_is_visible() local 549 ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_register() argument 581 ads784x_hwmon_register(struct spi_device *spi, struct ads7846 *ts) ads784x_hwmon_register() argument 591 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_pen_down_show() local 601 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_disable_show() local 610 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_disable_store() local 646 struct ads7846 *ts = ads; ads7846_debounce_filter() local 701 ads7846_set_cmd_val(struct ads7846 *ts, enum ads7846_cmds cmd_idx, u16 val) ads7846_set_cmd_val() argument 763 ads7846_filter(struct ads7846 *ts) ads7846_filter() argument 796 ads7846_read_state(struct ads7846 *ts) ads7846_read_state() argument 824 ads7846_report_state(struct ads7846 *ts) ads7846_report_state() argument 908 struct ads7846 *ts = handle; ads7846_hard_irq() local 916 struct ads7846 *ts = handle; ads7846_irq() local 941 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_suspend() local 963 struct ads7846 *ts = dev_get_drvdata(dev); ads7846_resume() local 985 ads7846_setup_pendown(struct spi_device *spi, struct ads7846 *ts, const struct ads7846_platform_data *pdata) ads7846_setup_pendown() argument 1015 ads7846_setup_spi_msg(struct ads7846 *ts, const struct ads7846_platform_data *pdata) ads7846_setup_spi_msg() argument 1180 struct ads7846 *ts; ads7846_probe() local 1382 struct ads7846 *ts = spi_get_drvdata(spi); ads7846_remove() 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 940 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_suspend() local 950 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_resume() local [all...] |
/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | tick-sched.c | 185 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument 216 if (ts->last_tick_jiffies != jiffies) { in tick_sched_do_timer() 217 ts->stalled_jiffies = 0; in tick_sched_do_timer() 218 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer() 220 if (++ts->stalled_jiffies == MAX_STALLED_JIFFIES) { in tick_sched_do_timer() 222 ts->stalled_jiffies = 0; in tick_sched_do_timer() 223 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer() 227 if (ts->inidle) in tick_sched_do_timer() 228 ts->got_idle_tick = 1; in tick_sched_do_timer() 231 static void tick_sched_handle(struct tick_sched *ts, struc argument 303 can_stop_full_tick(int cpu, struct tick_sched *ts) can_stop_full_tick() argument 447 struct tick_sched *ts; tick_nohz_dep_set_cpu() local 469 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_dep_clear_cpu() local 524 struct tick_sched *ts; __tick_nohz_task_switch() local 626 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_tick_stopped() local 633 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_tick_stopped_cpu() local 661 tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) tick_nohz_stop_idle() argument 683 tick_nohz_start_idle(struct tick_sched *ts) tick_nohz_start_idle() argument 693 get_cpu_sleep_time_us(struct tick_sched *ts, ktime_t *sleeptime, bool compute_delta, u64 *last_update_time) get_cpu_sleep_time_us() argument 741 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_idle_time_us() local 767 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_iowait_time_us() local 774 tick_nohz_restart(struct tick_sched *ts, ktime_t now) tick_nohz_restart() argument 801 tick_nohz_next_event(struct tick_sched *ts, int cpu) tick_nohz_next_event() argument 884 tick_nohz_stop_tick(struct tick_sched *ts, int cpu) tick_nohz_stop_tick() argument 960 tick_nohz_retain_tick(struct tick_sched *ts) tick_nohz_retain_tick() argument 966 tick_nohz_stop_sched_tick(struct tick_sched *ts, int cpu) tick_nohz_stop_sched_tick() argument 975 tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) tick_nohz_restart_sched_tick() argument 995 __tick_nohz_full_update_tick(struct tick_sched *ts, ktime_t now) __tick_nohz_full_update_tick() argument 1008 tick_nohz_full_update_tick(struct tick_sched *ts) tick_nohz_full_update_tick() argument 1058 can_stop_idle_tick(int cpu, struct tick_sched *ts) can_stop_idle_tick() argument 1110 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_stop_tick() local 1161 struct tick_sched *ts; tick_nohz_idle_enter() local 1187 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_exit() local 1200 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_got_tick() local 1234 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_sleep_length() local 1272 struct tick_sched *ts = tick_get_tick_sched(cpu); tick_nohz_get_idle_calls_cpu() local 1284 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_idle_calls() local 1289 tick_nohz_account_idle_time(struct tick_sched *ts, ktime_t now) tick_nohz_account_idle_time() argument 1313 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_restart_tick() local 1322 tick_nohz_idle_update_tick(struct tick_sched *ts, ktime_t now) tick_nohz_idle_update_tick() argument 1341 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_exit() local 1371 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_handler() local 1394 tick_nohz_activate(struct tick_sched *ts, int mode) tick_nohz_activate() argument 1409 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_switch_to_nohz() local 1434 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_enter() local 1457 tick_nohz_activate(struct tick_sched *ts, int mode) tick_nohz_activate() argument 1480 struct tick_sched *ts = tick_sched_timer() local 1520 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_setup_sched_timer() local 1549 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); tick_cancel_sched_timer() local 1586 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_oneshot_notify() local 1601 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_check_oneshot_change() local [all...] |
/kernel/linux/linux-5.10/kernel/time/ |
H A D | tick-sched.c | 153 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument 184 if (ts->last_tick_jiffies != jiffies) { in tick_sched_do_timer() 185 ts->stalled_jiffies = 0; in tick_sched_do_timer() 186 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer() 188 if (++ts->stalled_jiffies == MAX_STALLED_JIFFIES) { in tick_sched_do_timer() 190 ts->stalled_jiffies = 0; in tick_sched_do_timer() 191 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer() 195 if (ts->inidle) in tick_sched_do_timer() 196 ts->got_idle_tick = 1; in tick_sched_do_timer() 199 static void tick_sched_handle(struct tick_sched *ts, struc argument 270 can_stop_full_tick(int cpu, struct tick_sched *ts) can_stop_full_tick() argument 376 struct tick_sched *ts; tick_nohz_dep_set_cpu() local 398 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_dep_clear_cpu() local 454 struct tick_sched *ts; __tick_nohz_task_switch() local 560 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_tick_stopped() local 567 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_tick_stopped_cpu() local 599 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) update_ts_time_stats() argument 617 tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) tick_nohz_stop_idle() argument 619 update_ts_time_stats(smp_processor_id(), ts, now, NULL); tick_nohz_stop_idle() local 625 tick_nohz_start_idle(struct tick_sched *ts) tick_nohz_start_idle() argument 648 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_idle_time_us() local 689 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_iowait_time_us() local 713 tick_nohz_restart(struct tick_sched *ts, ktime_t now) tick_nohz_restart() argument 740 tick_nohz_next_event(struct tick_sched *ts, int cpu) tick_nohz_next_event() argument 825 tick_nohz_stop_tick(struct tick_sched *ts, int cpu) tick_nohz_stop_tick() argument 901 tick_nohz_retain_tick(struct tick_sched *ts) tick_nohz_retain_tick() argument 907 tick_nohz_stop_sched_tick(struct tick_sched *ts, int cpu) tick_nohz_stop_sched_tick() argument 916 tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) tick_nohz_restart_sched_tick() argument 938 tick_nohz_full_update_tick(struct tick_sched *ts) tick_nohz_full_update_tick() argument 956 can_stop_idle_tick(int cpu, struct tick_sched *ts) can_stop_idle_tick() argument 1010 __tick_nohz_idle_stop_tick(struct tick_sched *ts) __tick_nohz_idle_stop_tick() argument 1072 struct tick_sched *ts; tick_nohz_idle_enter() local 1098 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_exit() local 1111 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_got_tick() local 1141 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_sleep_length() local 1179 struct tick_sched *ts = tick_get_tick_sched(cpu); tick_nohz_get_idle_calls_cpu() local 1191 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_idle_calls() local 1196 tick_nohz_account_idle_ticks(struct tick_sched *ts) tick_nohz_account_idle_ticks() argument 1217 __tick_nohz_idle_restart_tick(struct tick_sched *ts, ktime_t now) __tick_nohz_idle_restart_tick() argument 1225 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_restart_tick() local 1240 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_exit() local 1270 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_handler() local 1293 tick_nohz_activate(struct tick_sched *ts, int mode) tick_nohz_activate() argument 1308 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_switch_to_nohz() local 1333 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_enter() local 1349 tick_nohz_activate(struct tick_sched *ts, int mode) tick_nohz_activate() argument 1372 struct tick_sched *ts = tick_sched_timer() local 1412 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_setup_sched_timer() local 1441 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); tick_cancel_sched_timer() local 1478 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_oneshot_notify() local 1493 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_check_oneshot_change() local [all...] |
/kernel/linux/linux-5.10/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, *new_ts; thread_stack__new() local 210 struct thread_stack *ts = thread->ts; 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 298 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_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_stack__free() local 524 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__sample() local 567 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__sample_late() local 619 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__br_sample() local 681 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__br_sample_late() local 781 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 813 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 858 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 885 thread_stack__pop_ks(struct thread *thread, struct thread_stack *ts, struct perf_sample *sample, u64 ref) thread_stack__pop_ks() argument 902 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 996 thread_stack__trace_begin(struct thread *thread, struct thread_stack *ts, u64 timestamp, u64 ref) thread_stack__trace_begin() argument 1018 thread_stack__trace_end(struct thread_stack *ts, struct perf_sample *sample, u64 ref) thread_stack__trace_end() argument 1050 thread_stack__x86_retpoline(struct thread_stack *ts, struct perf_sample *sample, struct addr_location *to_al) thread_stack__x86_retpoline() argument 1108 struct thread_stack *ts = thread__stack(thread, sample->cpu); thread_stack__process() local 1235 struct thread_stack *ts = thread__stack(thread, cpu); thread_stack__depth() local [all...] |
/kernel/linux/linux-6.6/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 298 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 903 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 997 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...] |
/kernel/linux/linux-5.10/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 160 __max730x_probe(struct max7301 *ts) __max730x_probe() argument 225 struct max7301 *ts = dev_get_drvdata(dev); __max730x_remove() local [all...] |
/kernel/linux/linux-6.6/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 160 __max730x_probe(struct max7301 *ts) __max730x_probe() argument 225 struct max7301 *ts = dev_get_drvdata(dev); __max730x_remove() local [all...] |