Home
last modified time | relevance | path

Searched full:ts (Results 1 – 25 of 2989) sorted by relevance

12345678910>>...120

/kernel/linux/linux-6.6/drivers/input/touchscreen/
Dgoodix.c61 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->client, in goodix_ts_read_input_report()
[all …]
Dad7879.c135 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->conversion_data[AD7879_SEQ_YPOS] & MAX_12BIT; in ad7879_report()
[all …]
Dtsc200x-core.c114 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->idev, BTN_TOUCH, 0); in tsc200x_update_pen_state()
128 ts->pen_down = false; in tsc200x_update_pen_state()
[all …]
Dcyttsp_core.c78 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_BASE, sizeof(cmd), &cmd); in ttsp_send_command()
119 static int cyttsp_handshake(struct cyttsp *ts) in cyttsp_handshake() argument
121 if (ts->use_hndshk) in cyttsp_handshake()
122 return ttsp_send_command(ts, in cyttsp_handshake()
123 ts->xy_data.hst_mode ^ CY_HNDSHK_BIT); in cyttsp_handshake()
[all …]
Dmxs-lradc-ts.c91 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->over_sample_cnt - 1) | in mxs_lradc_setup_ts_channel()
[all …]
Dmelfas_mip4.c179 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 …]
Dhideep.c179 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 …]
Dcyttsp5.c219 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->input_buf[2]) { in cyttsp5_get_mt_touches()
[all …]
Dilitek_ts_i2c.c75 int (*func)(struct ilitek_ts_data *ts, u16 cmd, u8 *inbuf, u8 *outbuf);
94 static int ilitek_i2c_write_and_read(struct ilitek_ts_data *ts, in ilitek_i2c_write_and_read() argument
99 struct i2c_client *client = ts->client; in ilitek_i2c_write_and_read()
139 static void ilitek_touch_down(struct ilitek_ts_data *ts, unsigned int id, in ilitek_touch_down() argument
142 struct input_dev *input = ts->input_dev; in ilitek_touch_down()
147 touchscreen_report_pos(input, &ts->prop, x, y, true); in ilitek_touch_down()
150 static int ilitek_process_and_report_v6(struct ilitek_ts_data *ts) in ilitek_process_and_report_v6() argument
158 struct input_dev *input = ts->input_dev; in ilitek_process_and_report_v6()
159 struct device *dev = &ts->client->dev; in ilitek_process_and_report_v6()
162 error = ilitek_i2c_write_and_read(ts, NULL, 0, 0, buf, 64); in ilitek_process_and_report_v6()
[all …]
Dads7846.c218 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
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dcyttsp_core.c70 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_BASE, sizeof(cmd), &cmd); in ttsp_send_command()
111 static int cyttsp_handshake(struct cyttsp *ts) in cyttsp_handshake() argument
113 if (ts->use_hndshk) in cyttsp_handshake()
114 return ttsp_send_command(ts, in cyttsp_handshake()
115 ts->xy_data.hst_mode ^ CY_HNDSHK_BIT); in cyttsp_handshake()
[all …]
Dad7879.c135 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->conversion_data[AD7879_SEQ_YPOS] & MAX_12BIT; in ad7879_report()
[all …]
Dgoodix.c83 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->client, addr, data, in goodix_ts_read_input_report()
[all …]
Dtsc200x-core.c112 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->idev, BTN_TOUCH, 0); in tsc200x_update_pen_state()
[all …]
Dmxs-lradc-ts.c91 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->over_sample_cnt - 1) | in mxs_lradc_setup_ts_channel()
[all …]
Dhideep.c178 static int hideep_pgm_w_mem(struct hideep_ts *ts, u32 addr, in hideep_pgm_w_mem() argument
181 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_w_mem()
184 .addr = ts->client->addr, in hideep_pgm_w_mem()
198 ret = i2c_transfer(ts->client->adapter, &msg, 1); in hideep_pgm_w_mem()
205 static int hideep_pgm_r_mem(struct hideep_ts *ts, u32 addr, in hideep_pgm_r_mem() argument
208 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_r_mem()
212 .addr = ts->client->addr, in hideep_pgm_r_mem()
218 .addr = ts->client->addr, in hideep_pgm_r_mem()
232 ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); in hideep_pgm_r_mem()
239 static int hideep_pgm_r_reg(struct hideep_ts *ts, u32 addr, u32 *val) in hideep_pgm_r_reg() argument
[all …]
Dmelfas_mip4.c179 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 …]
Dads7846.c220 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
[all …]
Ds3c2410_ts.c108 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.dev, "%s: X=%lu, Y=%lu, count=%d\n", in touch_timer_fire()
141 __func__, ts.xp, ts.yp, ts.count); in touch_timer_fire()
143 input_report_abs(ts.input, ABS_X, ts.xp); in touch_timer_fire()
144 input_report_abs(ts.input, ABS_Y, ts.yp); in touch_timer_fire()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Ducb1x00-ts.c54 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 …]
/kernel/linux/linux-6.6/drivers/mfd/
Ducb1x00-ts.c54 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 …]
/kernel/linux/linux-5.10/tools/perf/util/
Dthread-stack.c118 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->br_stack_sz = br_stack_sz; in thread_stack__init()
[all …]
/kernel/linux/linux-6.6/tools/perf/util/
Dthread-stack.c118 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->br_stack_sz = br_stack_sz; in thread_stack__init()
[all …]
/kernel/linux/linux-6.6/drivers/iio/common/inv_sensors/
Dinv_sensors_timestamp.c41 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
66 if (fifo && ts->new_mult != 0) in inv_sensors_timestamp_update_odr()
[all …]
/kernel/linux/linux-5.10/kernel/time/
Dtick-sched.c153 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, struct pt_regs *regs) in tick_sched_handle() argument
[all …]

12345678910>>...120