| /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->client, in goodix_ts_read_input_report() [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->fw_version)); in mip4_get_fw_version() 237 mip4_parse_fw_version(buf, &ts->fw_version); in mip4_get_fw_version() [all …]
|
| H A D | hideep.c | 179 static int hideep_pgm_w_mem(struct hideep_ts *ts, u32 addr, in hideep_pgm_w_mem() argument 182 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_w_mem() 185 .addr = ts->client->addr, in hideep_pgm_w_mem() 199 ret = i2c_transfer(ts->client->adapter, &msg, 1); in hideep_pgm_w_mem() 206 static int hideep_pgm_r_mem(struct hideep_ts *ts, u32 addr, in hideep_pgm_r_mem() argument 209 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_r_mem() 213 .addr = ts->client->addr, in hideep_pgm_r_mem() 219 .addr = ts->client->addr, in hideep_pgm_r_mem() 233 ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); in hideep_pgm_r_mem() 240 static int hideep_pgm_r_reg(struct hideep_ts *ts, u32 addr, u32 *val) in hideep_pgm_r_reg() argument [all …]
|
| H A D | ads7846.c | 137 int (*setup_spi_msg)(struct ads7846 *ts, 139 void (*read_state)(struct ads7846 *ts); 222 static int get_pendown_state(struct ads7846 *ts) in get_pendown_state() argument 224 if (ts->get_pendown_state) in get_pendown_state() 225 return ts->get_pendown_state(); in get_pendown_state() 227 return gpiod_get_value(ts->gpio_pendown); in get_pendown_state() 230 static void ads7846_report_pen_up(struct ads7846 *ts) in ads7846_report_pen_up() argument 232 struct input_dev *input = ts->input; in ads7846_report_pen_up() 238 ts->pendown = false; in ads7846_report_pen_up() 239 dev_vdbg(&ts->spi->dev, "UP\n"); in ads7846_report_pen_up() [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->regmap, HIMAX_AHB_ADDR_RDATA_BYTE_0, in himax_bus_read() [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, NULL, 0, 0, buf, 64); in ilitek_process_and_report_v6() [all …]
|
| H A D | cyttsp5.c | 218 static int cyttsp5_read(struct cyttsp5 *ts, u8 *buf, u32 max) in cyttsp5_read() argument 225 error = regmap_bulk_read(ts->regmap, HID_INPUT_REG, temp, sizeof(temp)); in cyttsp5_read() 237 return regmap_bulk_read(ts->regmap, HID_INPUT_REG, buf, size); in cyttsp5_read() 240 static int cyttsp5_write(struct cyttsp5 *ts, unsigned int reg, u8 *data, in cyttsp5_write() argument 262 return regmap_bulk_write(ts->regmap, reg & 0xFF, cmd, size + 1); in cyttsp5_write() 276 static void cyttsp5_get_touch_record(struct cyttsp5 *ts, in cyttsp5_get_touch_record() argument 279 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_touch_record() 290 static void cyttsp5_get_mt_touches(struct cyttsp5 *ts, in cyttsp5_get_mt_touches() argument 293 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_mt_touches() 302 switch (ts->input_buf[2]) { in cyttsp5_get_mt_touches() [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() 123 scoped_guard(mutex, &ts->mlock) { in tsc2007_soft_irq() 124 tsc2007_read_values(ts, &tc); in tsc2007_soft_irq() 127 rt = tsc2007_calculate_resistance(ts, &tc); in tsc2007_soft_irq() 129 if (!rt && !ts->get_pendown_state) { in tsc2007_soft_irq() [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->ignore_fifo_data = false; in sun4i_ts_irq_handle_input() [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, &buf[0], ARRAY_SIZE(buf)); in zforce_command_wait() [all …]
|
| H A D | ts4800-ts.c | 2 * Touchscreen driver for the TS-4800 board 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->regmap, ts->reg, ts->bit, 0); in ts4800_ts_close() 72 dev_warn(ts->dev, "Failed to disable touchscreen\n"); in ts4800_ts_close() 78 struct ts4800_ts *ts = input_get_drvdata(input_dev); in ts4800_ts_poll() local [all …]
|
| H A D | st1232.c | 28 #define ST1232_TS_NAME "st1232-ts" 29 #define ST1633_TS_NAME "st1633-ts" 100 static int st1232_ts_read_data(struct st1232_ts_data *ts, u8 reg, in st1232_ts_read_data() argument 103 struct i2c_client *client = ts->client; in st1232_ts_read_data() 114 .buf = ts->read_buf, in st1232_ts_read_data() 126 static int st1232_ts_wait_ready(struct st1232_ts_data *ts) in st1232_ts_wait_ready() argument 132 error = st1232_ts_read_data(ts, REG_STATUS, 1); in st1232_ts_wait_ready() 134 switch (ts->read_buf[0]) { in st1232_ts_wait_ready() 147 static int st1232_ts_read_fw_version(struct st1232_ts_data *ts, in st1232_ts_read_fw_version() argument 153 error = st1232_ts_read_data(ts, REG_FIRMWARE_VERSION, 1); in st1232_ts_read_fw_version() [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->input, i); in zet6223_irq() [all …]
|
| H A D | auo-pixcir-ts.c | 138 static int auo_pixcir_collect_data(struct auo_pixcir_ts *ts, in auo_pixcir_collect_data() argument 141 struct i2c_client *client = ts->client; in auo_pixcir_collect_data() 168 if (point[i].coord_x > ts->x_max || in auo_pixcir_collect_data() 169 point[i].coord_y > ts->y_max) { in auo_pixcir_collect_data() 186 struct auo_pixcir_ts *ts = dev_id; in auo_pixcir_interrupt() local 193 while (!ts->stopped) { in auo_pixcir_interrupt() 196 if (ts->touch_ind_mode) { in auo_pixcir_interrupt() 197 if (gpiod_get_value_cansleep(ts->gpio_int) == 0) { in auo_pixcir_interrupt() 198 input_mt_sync(ts->input); in auo_pixcir_interrupt() 199 input_report_key(ts->input, BTN_TOUCH, 0); in auo_pixcir_interrupt() [all …]
|
| H A D | elants_i2c.c | 298 static int elants_i2c_calibrate(struct elants_data *ts) in elants_i2c_calibrate() argument 300 struct i2c_client *client = ts->client; in elants_i2c_calibrate() 307 ts->state = ELAN_WAIT_RECALIBRATION; in elants_i2c_calibrate() 308 reinit_completion(&ts->cmd_done); in elants_i2c_calibrate() 314 ret = wait_for_completion_interruptible_timeout(&ts->cmd_done, in elants_i2c_calibrate() 317 ts->state = ELAN_STATE_NORMAL; in elants_i2c_calibrate() 327 if (memcmp(rek_resp, ts->cmd_resp, sizeof(rek_resp))) { in elants_i2c_calibrate() 330 (int)sizeof(ts->cmd_resp), ts->cmd_resp); in elants_i2c_calibrate() 363 static int elants_i2c_query_hw_version(struct elants_data *ts) in elants_i2c_query_hw_version() argument 365 struct i2c_client *client = ts->client; in elants_i2c_query_hw_version() [all …]
|
| H A D | raydium_i2c_ts.c | 292 static int raydium_i2c_query_ts_bootloader_info(struct raydium_data *ts) in raydium_i2c_query_ts_bootloader_info() argument 294 struct i2c_client *client = ts->client; in raydium_i2c_query_ts_bootloader_info() 323 ts->info.hw_ver = cpu_to_le32(hw_ver); in raydium_i2c_query_ts_bootloader_info() 324 ts->info.main_ver = 0xff; in raydium_i2c_query_ts_bootloader_info() 325 ts->info.sub_ver = 0xff; in raydium_i2c_query_ts_bootloader_info() 330 static int raydium_i2c_query_ts_info(struct raydium_data *ts) in raydium_i2c_query_ts_info() argument 332 struct i2c_client *client = ts->client; in raydium_i2c_query_ts_info() 349 if (ts->report_data && ts->pkg_size != data_info.pkg_size) { in raydium_i2c_query_ts_info() 352 ts->pkg_size, data_info.pkg_size); in raydium_i2c_query_ts_info() 354 ts->pkg_size = data_info.pkg_size; in raydium_i2c_query_ts_info() [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->work); in stmpe_ts_handler() [all …]
|
| H A D | cy8ctma140.c | 55 static void cy8ctma140_report(struct cy8ctma140 *ts, u8 *data, int n_fingers) in cy8ctma140_report() argument 74 slot = input_mt_get_slot_by_key(ts->input, id); in cy8ctma140_report() 82 dev_dbg(ts->dev, "finger %d: ID %02x (%d, %d) w: %d\n", in cy8ctma140_report() 85 input_mt_slot(ts->input, slot); in cy8ctma140_report() 86 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); in cy8ctma140_report() 87 touchscreen_report_pos(ts->input, &ts->props, x, y, true); in cy8ctma140_report() 88 input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, w); in cy8ctma140_report() 91 input_mt_sync_frame(ts->input); in cy8ctma140_report() 92 input_sync(ts->input); in cy8ctma140_report() 97 struct cy8ctma140 *ts = d; in cy8ctma140_irq_thread() 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->ucb, UCB_ADC_INP_AD2, ts->adcsync); in ucb1x00_ts_read_pressure() [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/iio/common/inv_sensors/ |
| H A D | inv_sensors_timestamp.c | 42 void inv_sensors_timestamp_init(struct inv_sensors_timestamp *ts, in inv_sensors_timestamp_init() argument 45 memset(ts, 0, sizeof(*ts)); in inv_sensors_timestamp_init() 48 ts->chip = *chip; in inv_sensors_timestamp_init() 49 ts->min_period = INV_SENSORS_TIMESTAMP_MIN(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init() 50 ts->max_period = INV_SENSORS_TIMESTAMP_MAX(chip->clock_period, chip->jitter); in inv_sensors_timestamp_init() 53 ts->mult = chip->init_period / chip->clock_period; in inv_sensors_timestamp_init() 54 ts->period = chip->init_period; in inv_sensors_timestamp_init() 57 inv_update_acc(&ts->chip_period, chip->clock_period); in inv_sensors_timestamp_init() 61 int inv_sensors_timestamp_update_odr(struct inv_sensors_timestamp *ts, in inv_sensors_timestamp_update_odr() argument 67 if (fifo && ts->new_mult != 0) in inv_sensors_timestamp_update_odr() [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->regs + 0x80 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable() [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->write(ts->dev, 0x20 + offset, 0x01); in __max7301_set() 84 ts->out_level &= ~(1 << offset); in __max7301_set() [all …]
|
| /linux/kernel/time/ |
| H A D | tick-sched.c | 184 static inline int tick_sched_flag_test(struct tick_sched *ts, in tick_sched_flag_test() argument 187 return !!(ts->flags & flag); in tick_sched_flag_test() 190 static inline void tick_sched_flag_set(struct tick_sched *ts, in tick_sched_flag_set() argument 194 ts->flags |= flag; in tick_sched_flag_set() 197 static inline void tick_sched_flag_clear(struct tick_sched *ts, in tick_sched_flag_clear() argument 201 ts->flags &= ~flag; in tick_sched_flag_clear() 210 static bool tick_limited_update_jiffies64(struct tick_sched *ts, ktime_t now) in tick_limited_update_jiffies64() argument 219 if (ts->last_tick_jiffies == jiffies) in tick_limited_update_jiffies64() 227 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument 259 if (ts in tick_sched_do_timer() 275 tick_sched_handle(struct tick_sched * ts,struct pt_regs * regs) tick_sched_handle() argument 306 struct tick_sched *ts = container_of(timer, struct tick_sched, sched_timer); tick_nohz_handler() local 381 can_stop_full_tick(int cpu,struct tick_sched * ts) can_stop_full_tick() argument 531 struct tick_sched *ts; tick_nohz_dep_set_cpu() local 553 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_dep_clear_cpu() local 608 struct tick_sched *ts; __tick_nohz_task_switch() local 716 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_tick_stopped() local 723 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_tick_stopped_cpu() local 766 tick_nohz_forward_last_tick(struct tick_sched * ts,ktime_t now) tick_nohz_forward_last_tick() argument 772 tick_nohz_restart(struct tick_sched * ts,ktime_t now) tick_nohz_restart() argument 826 tick_nohz_next_event(struct tick_sched * ts,int cpu) tick_nohz_next_event() argument 903 tick_nohz_stop_tick(struct tick_sched * ts,int cpu) tick_nohz_stop_tick() argument 1006 tick_nohz_retain_tick(struct tick_sched * ts) tick_nohz_retain_tick() argument 1012 tick_nohz_full_stop_tick(struct tick_sched * ts,int cpu) tick_nohz_full_stop_tick() argument 1021 tick_nohz_restart_sched_tick(struct tick_sched * ts,ktime_t now) tick_nohz_restart_sched_tick() argument 1040 __tick_nohz_full_update_tick(struct tick_sched * ts,ktime_t now) __tick_nohz_full_update_tick() argument 1053 tick_nohz_full_update_tick(struct tick_sched * ts) tick_nohz_full_update_tick() argument 1102 can_stop_idle_tick(int cpu,struct tick_sched * ts) can_stop_idle_tick() argument 1140 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_stop_tick() local 1179 tick_nohz_clock_sleep(struct tick_sched * ts) tick_nohz_clock_sleep() argument 1185 tick_nohz_clock_wakeup(struct tick_sched * ts) tick_nohz_clock_wakeup() argument 1200 struct tick_sched *ts; tick_nohz_idle_enter() local 1236 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_exit() local 1255 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_got_tick() local 1293 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_sleep_length() local 1333 struct tick_sched *ts = tick_get_tick_sched(cpu); tick_nohz_get_idle_calls_cpu() local 1338 tick_nohz_dyntick_stop(struct tick_sched * ts,ktime_t now) tick_nohz_dyntick_stop() argument 1346 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_restart_tick() local 1361 tick_nohz_idle_update_tick(struct tick_sched * ts,ktime_t now) tick_nohz_idle_update_tick() argument 1387 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_exit() local 1415 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_lowres_handler() local 1424 tick_nohz_activate(struct tick_sched * ts) tick_nohz_activate() argument 1454 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_enter() local 1479 tick_nohz_activate(struct tick_sched * ts) tick_nohz_activate() argument 1508 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_setup_sched_timer() local 1541 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); tick_sched_timer_dying() local 1571 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_oneshot_notify() local 1586 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_check_oneshot_change() local [all...] |
| /linux/drivers/thermal/spacemit/ |
| H A D | k1_tsensor.c | 63 struct k1_tsensor *ts; member 73 static void k1_tsensor_init(struct k1_tsensor *ts) in k1_tsensor_init() argument 78 writel(0xffffffff, ts->base + K1_TSENSOR_INT_EN_REG); in k1_tsensor_init() 81 val = readl(ts->base + K1_TSENSOR_TIME_REG); in k1_tsensor_init() 86 writel(val, ts->base + K1_TSENSOR_TIME_REG); in k1_tsensor_init() 92 val = readl(ts->base + K1_TSENSOR_PCTRL_REG); in k1_tsensor_init() 99 writel(val, ts->base + K1_TSENSOR_PCTRL_REG); in k1_tsensor_init() 102 val = readl(ts->base + K1_TSENSOR_EN_REG); in k1_tsensor_init() 104 writel(val, ts->base + K1_TSENSOR_EN_REG); in k1_tsensor_init() 109 struct k1_tsensor *ts = ch->ts; in k1_tsensor_enable_irq() local [all …]
|