Home
last modified time | relevance | path

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

12345678910>>...45

/linux/drivers/mfd/
H A 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 …]
/linux/tools/perf/util/
H A 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 …]
/linux/drivers/input/touchscreen/
H A Dhimax_hx83112b.c64 int (*check_id)(struct himax_ts_data *ts);
65 int (*read_events)(struct himax_ts_data *ts, struct himax_event *event,
84 static int himax_bus_enable_burst(struct himax_ts_data *ts) in himax_bus_enable_burst() argument
88 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_CONTI, in himax_bus_enable_burst()
93 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_INCR4, in himax_bus_enable_burst()
101 static int himax_bus_read(struct himax_ts_data *ts, u32 address, void *dst, in himax_bus_read() argument
107 error = himax_bus_enable_burst(ts); in himax_bus_read()
112 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_BYTE_0, address); in himax_bus_read()
116 error = regmap_write(ts->regmap, HIMAX_AHB_ADDR_ACCESS_DIRECTION, in himax_bus_read()
122 error = regmap_noinc_read(ts in himax_bus_read()
133 himax_reset(struct himax_ts_data * ts) himax_reset() argument
148 himax_read_product_id(struct himax_ts_data * ts,u32 * product_id) himax_read_product_id() argument
161 himax_check_product_id(struct himax_ts_data * ts) himax_check_product_id() argument
180 himax_input_register(struct himax_ts_data * ts) himax_input_register() argument
225 himax_process_event_point(struct himax_ts_data * ts,const struct himax_event * event,int point_index) himax_process_event_point() argument
245 himax_process_event(struct himax_ts_data * ts,const struct himax_event * event) himax_process_event() argument
260 himax_verify_checksum(struct himax_ts_data * ts,const struct himax_event * event) himax_verify_checksum() argument
279 himax_read_events(struct himax_ts_data * ts,struct himax_event * event,size_t length) himax_read_events() argument
286 hx83100a_read_events(struct himax_ts_data * ts,struct himax_event * event,size_t length) hx83100a_read_events() argument
292 himax_handle_input(struct himax_ts_data * ts) himax_handle_input() argument
317 struct himax_ts_data *ts = dev_id; himax_irq_handler() local
330 struct himax_ts_data *ts; himax_probe() local
382 struct himax_ts_data *ts = dev_get_drvdata(dev); himax_suspend() local
390 struct himax_ts_data *ts = dev_get_drvdata(dev); himax_resume() local
[all...]
H A 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 in cyttsp5_get_mt_touches()
346 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_mt_attention() local
377 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_setup_input_device() local
412 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_parse_dt_key_code() local
427 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_btn_attention() local
458 cyttsp5_validate_cmd_response(struct cyttsp5 * ts,u8 code) cyttsp5_validate_cmd_response() argument
513 cyttsp5_si_get_btn_data(struct cyttsp5 * ts) cyttsp5_si_get_btn_data() argument
522 cyttsp5_get_sysinfo_regs(struct cyttsp5 * ts) cyttsp5_get_sysinfo_regs() argument
541 cyttsp5_hid_output_get_sysinfo(struct cyttsp5 * ts) cyttsp5_hid_output_get_sysinfo() argument
576 cyttsp5_power_control(struct cyttsp5 * ts,bool on) cyttsp5_power_control() argument
610 cyttsp5_hid_output_bl_launch_app(struct cyttsp5 * ts) cyttsp5_hid_output_bl_launch_app() argument
650 cyttsp5_get_hid_descriptor(struct cyttsp5 * ts,struct cyttsp5_hid_desc * desc) cyttsp5_get_hid_descriptor() argument
698 struct cyttsp5 *ts = handle; cyttsp5_handle_irq() local
736 cyttsp5_deassert_int(struct cyttsp5 * ts) cyttsp5_deassert_int() argument
753 cyttsp5_fill_all_touch(struct cyttsp5 * ts) cyttsp5_fill_all_touch() argument
775 cyttsp5_startup(struct cyttsp5 * ts) cyttsp5_startup() argument
818 struct cyttsp5 *ts = data; cyttsp5_cleanup() local
826 struct cyttsp5 *ts; cyttsp5_probe() local
948 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_suspend() local
958 struct cyttsp5 *ts = dev_get_drvdata(dev); cyttsp5_resume() local
[all...]
H A Dsun4i-ts.c12 * 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 Dzforce_ts.c128 static int zforce_command(struct zforce_ts *ts, u8 cmd) in zforce_command() argument
130 struct i2c_client *client = ts->client; in zforce_command()
149 static int zforce_send_wait(struct zforce_ts *ts, const char *buf, int len) in zforce_send_wait() argument
151 struct i2c_client *client = ts->client; in zforce_send_wait()
157 ts->command_waiting = buf[2]; in zforce_send_wait()
167 if (wait_for_completion_timeout(&ts->command_done, WAIT_TIMEOUT) == 0) in zforce_send_wait()
170 ret = ts->command_result; in zforce_send_wait()
174 static int zforce_command_wait(struct zforce_ts *ts, u8 cmd) in zforce_command_wait() argument
176 struct i2c_client *client = ts->client; in zforce_command_wait()
186 error = zforce_send_wait(ts, in zforce_command_wait()
196 zforce_resolution(struct zforce_ts * ts,u16 x,u16 y) zforce_resolution() argument
208 zforce_scan_frequency(struct zforce_ts * ts,u16 idle,u16 finger,u16 stylus) zforce_scan_frequency() argument
224 zforce_setconfig(struct zforce_ts * ts,char b1) zforce_setconfig() argument
235 zforce_start(struct zforce_ts * ts) zforce_start() argument
287 zforce_stop(struct zforce_ts * ts) zforce_stop() argument
305 zforce_touch_event(struct zforce_ts * ts,u8 * payload) zforce_touch_event() argument
379 zforce_read_packet(struct zforce_ts * ts,u8 * buf) zforce_read_packet() argument
415 zforce_complete(struct zforce_ts * ts,int cmd,int result) zforce_complete() argument
430 struct zforce_ts *ts = dev_id; zforce_irq() local
441 struct zforce_ts *ts = dev_id; zforce_irq_thread() local
553 struct zforce_ts *ts = input_get_drvdata(dev); zforce_input_open() local
560 struct zforce_ts *ts = input_get_drvdata(dev); zforce_input_close() local
569 __zforce_suspend(struct zforce_ts * ts) __zforce_suspend() argument
610 struct zforce_ts *ts = i2c_get_clientdata(client); zforce_suspend() local
627 struct zforce_ts *ts = i2c_get_clientdata(client); zforce_resume() local
663 struct zforce_ts *ts = data; zforce_reset() local
669 zforce_ts_parse_legacy_properties(struct zforce_ts * ts) zforce_ts_parse_legacy_properties() argument
683 struct zforce_ts *ts; zforce_probe() local
[all...]
H A Dts4800-ts.c2 * 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 Dzet6223.c37 struct zet6223_ts *ts = input_get_drvdata(dev); in zet6223_start() local
39 enable_irq(ts->client->irq); in zet6223_start()
46 struct zet6223_ts *ts = input_get_drvdata(dev); in zet6223_stop() local
48 disable_irq(ts->client->irq); in zet6223_stop()
53 struct zet6223_ts *ts = dev_id; in zet6223_irq() local
60 u8 bufsize = 3 + 4 * ts->fingernum; in zet6223_irq()
66 ret = i2c_master_recv(ts->client, buf, bufsize); in zet6223_irq()
69 dev_err_ratelimited(&ts->client->dev, in zet6223_irq()
78 for (i = 0; i < ts->fingernum; i++) { in zet6223_irq()
82 input_mt_slot(ts in zet6223_irq()
98 struct zet6223_ts *ts = _ts; zet6223_power_off() local
103 zet6223_power_on(struct zet6223_ts * ts) zet6223_power_on() argument
131 zet6223_query_device(struct zet6223_ts * ts) zet6223_query_device() argument
171 struct zet6223_ts *ts; zet6223_probe() local
[all...]
H A Dstmpe-ts.c46 #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 Dcy8ctma140.c55 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 in cy8ctma140_report()
97 struct cy8ctma140 *ts = d; cy8ctma140_irq_thread() local
143 cy8ctma140_init(struct cy8ctma140 * ts) cy8ctma140_init() argument
171 cy8ctma140_power_up(struct cy8ctma140 * ts) cy8ctma140_power_up() argument
187 cy8ctma140_power_down(struct cy8ctma140 * ts) cy8ctma140_power_down() argument
196 struct cy8ctma140 *ts = d; cy8ctma140_power_off_action() local
203 struct cy8ctma140 *ts; cy8ctma140_probe() local
298 struct cy8ctma140 *ts = i2c_get_clientdata(client); cy8ctma140_suspend() local
309 struct cy8ctma140 *ts = i2c_get_clientdata(client); cy8ctma140_resume() local
[all...]
H A Dbu21013_ts.c171 static int bu21013_read_block_data(struct bu21013_ts *ts, u8 *buf) in bu21013_read_block_data() argument
176 ret = i2c_smbus_read_i2c_block_data(ts->client, in bu21013_read_block_data()
186 static int bu21013_do_touch_report(struct bu21013_ts *ts) in bu21013_do_touch_report() argument
188 struct input_dev *input = ts->in_dev; in bu21013_do_touch_report()
196 if (bu21013_read_block_data(ts, buf) < 0) in bu21013_do_touch_report()
213 &ts->props, x, y); in bu21013_do_touch_report()
238 struct bu21013_ts *ts = device_data; in bu21013_gpio_irq() local
243 error = bu21013_do_touch_report(ts); in bu21013_gpio_irq()
245 dev_err(&ts->client->dev, "%s failed\n", __func__); in bu21013_gpio_irq()
249 if (unlikely(ts in bu21013_gpio_irq()
261 bu21013_init_chip(struct bu21013_ts * ts) bu21013_init_chip() argument
395 struct bu21013_ts *ts = _ts; bu21013_power_off() local
402 struct bu21013_ts *ts = _ts; bu21013_disable_chip() local
409 struct bu21013_ts *ts; bu21013_probe() local
546 struct bu21013_ts *ts = i2c_get_clientdata(client); bu21013_remove() local
556 struct bu21013_ts *ts = i2c_get_clientdata(client); bu21013_suspend() local
571 struct bu21013_ts *ts = i2c_get_clientdata(client); bu21013_resume() local
[all...]
H A Dcy8ctmg110_ts.c55 static void cy8ctmg110_power(struct cy8ctmg110 *ts, bool poweron) in cy8ctmg110_power() argument
57 if (ts->reset_gpio) in cy8ctmg110_power()
58 gpiod_set_value_cansleep(ts->reset_gpio, !poweron); in cy8ctmg110_power()
137 static int cy8ctmg110_set_sleepmode(struct cy8ctmg110 *ts, bool sleep) in cy8ctmg110_set_sleepmode() argument
151 return cy8ctmg110_write_regs(ts, CY8CTMG110_TOUCH_WAKEUP_TIME, 3, reg_p); in cy8ctmg110_set_sleepmode()
165 struct cy8ctmg110 *ts = _ts; in cy8ctmg110_shut_off() local
167 cy8ctmg110_set_sleepmode(ts, true); in cy8ctmg110_shut_off()
168 cy8ctmg110_power(ts, false); in cy8ctmg110_shut_off()
173 struct cy8ctmg110 *ts; in cy8ctmg110_probe() local
181 ts in cy8ctmg110_probe()
243 struct cy8ctmg110 *ts = i2c_get_clientdata(client); cy8ctmg110_suspend() local
256 struct cy8ctmg110 *ts = i2c_get_clientdata(client); cy8ctmg110_resume() local
[all...]
H A Dsis_i2c.c172 static int sis_ts_report_contact(struct sis_ts_data *ts, const u8 *data, u8 id) in sis_ts_report_contact() argument
174 struct input_dev *input = ts->input; in sis_ts_report_contact()
182 dev_err(&ts->client->dev, "Unexpected touch status: %#02x\n", in sis_ts_report_contact()
223 static void sis_ts_handle_packet(struct sis_ts_data *ts) in sis_ts_handle_packet() argument
234 error = sis_read_packet(ts->client, ts->packet, in sis_ts_handle_packet()
242 dev_err(&ts->client->dev, in sis_ts_handle_packet()
248 report_id = ts->packet[SIS_PKT_REPORT_OFFSET]; in sis_ts_handle_packet()
249 contact = &ts->packet[SIS_PKT_CONTACT_OFFSET]; in sis_ts_handle_packet()
253 error = sis_ts_report_contact(ts, contac in sis_ts_handle_packet()
278 struct sis_ts_data *ts = dev_id; sis_ts_irq_handler() local
287 sis_ts_reset(struct sis_ts_data * ts) sis_ts_reset() argument
301 struct sis_ts_data *ts; sis_ts_probe() local
[all...]
H A Draspberrypi-ts.c61 struct rpi_ts *ts = input_get_drvdata(input); in rpi_ts_poll() local
70 memcpy_fromio(&regs, ts->fw_regs_va, sizeof(regs)); in rpi_ts_poll()
78 ts->fw_regs_va + offsetof(struct rpi_ts_regs, num_points)); in rpi_ts_poll()
81 (regs.num_points == 0 && ts->known_ids == 0)) in rpi_ts_poll()
96 touchscreen_report_pos(input, &ts->prop, x, y, true); in rpi_ts_poll()
100 released_ids = ts->known_ids & ~modified_ids; in rpi_ts_poll()
106 ts->known_ids = modified_ids; in rpi_ts_poll()
114 struct rpi_ts *ts = data; in rpi_ts_dma_cleanup() local
115 struct device *dev = &ts->pdev->dev; in rpi_ts_dma_cleanup()
117 dma_free_coherent(dev, PAGE_SIZE, ts->fw_regs_va, ts->fw_regs_phys); in rpi_ts_dma_cleanup()
[all …]
/linux/drivers/iio/common/inv_sensors/
H A 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 …]
/linux/drivers/hid/
H A Dhid-goodix-spi.c112 static void *goodix_get_event_report(struct goodix_ts_data *ts, u32 addr, in goodix_get_event_report() argument
115 struct spi_device *spi = to_spi_device(&ts->spi->dev); in goodix_get_event_report()
133 dev_err(ts->dev, "spi transfer error: %d", error); in goodix_get_event_report()
140 static int goodix_spi_read(struct goodix_ts_data *ts, u32 addr, in goodix_spi_read() argument
143 struct spi_device *spi = to_spi_device(&ts->spi->dev); in goodix_spi_read()
148 if (GOODIX_SPI_READ_PREFIX_LEN + len > sizeof(ts->xfer_buf)) { in goodix_spi_read()
149 dev_err(ts->dev, "read data len exceed limit %zu", in goodix_spi_read()
150 sizeof(ts->xfer_buf) - GOODIX_SPI_READ_PREFIX_LEN); in goodix_spi_read()
155 ts->xfer_buf[0] = GOODIX_SPI_READ_FLAG; in goodix_spi_read()
156 put_unaligned_be32(addr, ts in goodix_spi_read()
174 goodix_spi_write(struct goodix_ts_data * ts,u32 addr,const void * data,size_t len) goodix_spi_write() argument
206 goodix_dev_confirm(struct goodix_ts_data * ts) goodix_dev_confirm() argument
247 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_parse() local
297 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_start() local
326 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_open() local
334 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_close() local
340 goodix_hid_check_ack_status(struct goodix_ts_data * ts,u32 * resp_len) goodix_hid_check_ack_status() argument
391 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_get_raw_report() local
491 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_set_raw_report() local
539 struct goodix_ts_data *ts = hid->driver_data; goodix_hid_raw_request() local
571 struct goodix_ts_data *ts = data; goodix_hid_irq() local
634 goodix_hid_init(struct goodix_ts_data * ts) goodix_hid_init() argument
676 struct goodix_ts_data *ts; goodix_spi_probe() local
737 struct goodix_ts_data *ts = spi_get_drvdata(spi); goodix_spi_remove() local
743 goodix_spi_set_power(struct goodix_ts_data * ts,int power_state) goodix_spi_set_power() argument
764 struct goodix_ts_data *ts = dev_get_drvdata(dev); goodix_spi_suspend() local
772 struct goodix_ts_data *ts = dev_get_drvdata(dev); goodix_spi_resume() local
[all...]
H A Dhid-nvidia-shield.c301 static inline void thunderstrike_send_hostcmd_request(struct thunderstrike *ts) in thunderstrike_send_hostcmd_request() argument
303 struct thunderstrike_hostcmd_req_report *report = ts->req_report_dmabuf; in thunderstrike_send_hostcmd_request()
304 struct shield_device *shield_dev = &ts->base; in thunderstrike_send_hostcmd_request()
308 ts->req_report_dmabuf, in thunderstrike_send_hostcmd_request()
321 struct thunderstrike *ts = in thunderstrike_hostcmd_req_work_handler() local
326 report = ts->req_report_dmabuf; in thunderstrike_hostcmd_req_work_handler()
328 if (test_and_clear_bit(THUNDERSTRIKE_FW_VERSION_UPDATE, &ts->update_flags)) { in thunderstrike_hostcmd_req_work_handler()
331 thunderstrike_send_hostcmd_request(ts); in thunderstrike_hostcmd_req_work_handler()
334 if (test_and_clear_bit(THUNDERSTRIKE_LED_UPDATE, &ts->update_flags)) { in thunderstrike_hostcmd_req_work_handler()
337 report->led.state = ts->led_value; in thunderstrike_hostcmd_req_work_handler()
[all …]
/linux/drivers/net/wireless/quantenna/qtnfmac/pcie/
H A Dtopaz_pcie.c103 static void qtnf_deassert_intx(struct qtnf_pcie_topaz_state *ts) in qtnf_deassert_intx() argument
105 void __iomem *reg = ts->base.sysctl_bar + TOPAZ_PCIE_CFG0_OFFSET; in qtnf_deassert_intx()
113 static inline int qtnf_topaz_intx_asserted(struct qtnf_pcie_topaz_state *ts) in qtnf_topaz_intx_asserted() argument
115 void __iomem *reg = ts->base.sysctl_bar + TOPAZ_PCIE_CFG0_OFFSET; in qtnf_topaz_intx_asserted()
121 static void qtnf_topaz_reset_ep(struct qtnf_pcie_topaz_state *ts) in qtnf_topaz_reset_ep() argument
124 TOPAZ_LH_IPC4_INT(ts->base.sysctl_bar)); in qtnf_topaz_reset_ep()
126 pci_restore_state(ts->base.pdev); in qtnf_topaz_reset_ep()
129 static void setup_rx_irqs(struct qtnf_pcie_topaz_state *ts) in setup_rx_irqs() argument
131 void __iomem *reg = PCIE_DMA_WR_DONE_IMWR_ADDR_LOW(ts->base.dmareg_bar); in setup_rx_irqs()
133 ts in setup_rx_irqs()
136 enable_rx_irqs(struct qtnf_pcie_topaz_state * ts) enable_rx_irqs() argument
143 disable_rx_irqs(struct qtnf_pcie_topaz_state * ts) disable_rx_irqs() argument
152 struct qtnf_pcie_topaz_state *ts = arg; qtnf_topaz_ipc_gen_ep_int() local
183 topaz_alloc_bd_table(struct qtnf_pcie_topaz_state * ts,struct qtnf_topaz_bda __iomem * bda) topaz_alloc_bd_table() argument
244 topaz_skb2rbd_attach(struct qtnf_pcie_topaz_state * ts,u16 index,u32 wrap) topaz_skb2rbd_attach() argument
273 topaz_alloc_rx_buffers(struct qtnf_pcie_topaz_state * ts) topaz_alloc_rx_buffers() argument
294 qtnf_topaz_free_xfer_buffers(struct qtnf_pcie_topaz_state * ts) qtnf_topaz_free_xfer_buffers() argument
334 qtnf_pcie_topaz_init_xfer(struct qtnf_pcie_topaz_state * ts,unsigned int tx_bd_size,unsigned int rx_bd_size) qtnf_pcie_topaz_init_xfer() argument
391 qtnf_topaz_data_tx_reclaim(struct qtnf_pcie_topaz_state * ts) qtnf_topaz_data_tx_reclaim() argument
447 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_try_stop_xmit() local
469 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_try_wake_xmit() local
482 qtnf_tx_queue_ready(struct qtnf_pcie_topaz_state * ts) qtnf_tx_queue_ready() argument
503 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_pcie_data_tx() local
568 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_pcie_topaz_interrupt() local
592 qtnf_rx_data_ready(struct qtnf_pcie_topaz_state * ts) qtnf_rx_data_ready() argument
610 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_topaz_rx_poll() local
722 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_data_tx_timeout() local
730 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_data_rx_start() local
738 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_data_rx_stop() local
758 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_dbg_irq_stats() local
768 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_dbg_pkt_stats() local
800 qtnf_reset_dma_offset(struct qtnf_pcie_topaz_state * ts) qtnf_reset_dma_offset() argument
811 qtnf_pcie_endian_detect(struct qtnf_pcie_topaz_state * ts) qtnf_pcie_endian_detect() argument
852 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_pre_init_ep() local
886 qtnf_post_init_ep(struct qtnf_pcie_topaz_state * ts) qtnf_post_init_ep() argument
902 qtnf_ep_fw_load(struct qtnf_pcie_topaz_state * ts,const u8 * fw,u32 fw_size) qtnf_ep_fw_load() argument
1003 qtnf_topaz_fw_upload(struct qtnf_pcie_topaz_state * ts,const char * fwname) qtnf_topaz_fw_upload() argument
1037 struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); qtnf_topaz_fw_work_handler() local
1110 struct qtnf_pcie_topaz_state *ts = from_tasklet(ts, t, base.reclaim_tq); qtnf_reclaim_tasklet_fn() local
1123 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_topaz_probe() local
1175 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_topaz_remove() local
1184 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_topaz_suspend() local
1201 struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); qtnf_pcie_topaz_resume() local
1220 struct qtnf_pcie_topaz_state *ts; qtnf_pcie_topaz_alloc() local
[all...]
/linux/drivers/thermal/tegra/
H A Dtegra30-tsensor.c76 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 Dgpio-max730x.c50 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 Dtick-sched.c184 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
308 struct tick_sched *ts = container_of(timer, struct tick_sched, sched_timer); tick_nohz_handler() local
383 can_stop_full_tick(int cpu,struct tick_sched * ts) can_stop_full_tick() argument
533 struct tick_sched *ts; tick_nohz_dep_set_cpu() local
555 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_dep_clear_cpu() local
610 struct tick_sched *ts; __tick_nohz_task_switch() local
718 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_tick_stopped() local
725 struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu); tick_nohz_tick_stopped_cpu() local
754 tick_nohz_stop_idle(struct tick_sched * ts,ktime_t now) tick_nohz_stop_idle() argument
776 tick_nohz_start_idle(struct tick_sched * ts) tick_nohz_start_idle() argument
786 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
834 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_idle_time_us() local
860 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); get_cpu_iowait_time_us() local
881 tick_nohz_restart(struct tick_sched * ts,ktime_t now) tick_nohz_restart() argument
935 tick_nohz_next_event(struct tick_sched * ts,int cpu) tick_nohz_next_event() argument
1013 tick_nohz_stop_tick(struct tick_sched * ts,int cpu) tick_nohz_stop_tick() argument
1116 tick_nohz_retain_tick(struct tick_sched * ts) tick_nohz_retain_tick() argument
1122 tick_nohz_full_stop_tick(struct tick_sched * ts,int cpu) tick_nohz_full_stop_tick() argument
1131 tick_nohz_restart_sched_tick(struct tick_sched * ts,ktime_t now) tick_nohz_restart_sched_tick() argument
1150 __tick_nohz_full_update_tick(struct tick_sched * ts,ktime_t now) __tick_nohz_full_update_tick() argument
1163 tick_nohz_full_update_tick(struct tick_sched * ts) tick_nohz_full_update_tick() argument
1212 can_stop_idle_tick(int cpu,struct tick_sched * ts) can_stop_idle_tick() argument
1250 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_stop_tick() local
1296 struct tick_sched *ts; tick_nohz_idle_enter() local
1333 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_exit() local
1348 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_got_tick() local
1386 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_get_sleep_length() local
1427 struct tick_sched *ts = tick_get_tick_sched(cpu); tick_nohz_get_idle_calls_cpu() local
1432 tick_nohz_account_idle_time(struct tick_sched * ts,ktime_t now) tick_nohz_account_idle_time() argument
1456 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_restart_tick() local
1465 tick_nohz_idle_update_tick(struct tick_sched * ts,ktime_t now) tick_nohz_idle_update_tick() argument
1493 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_idle_exit() local
1526 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_lowres_handler() local
1535 tick_nohz_activate(struct tick_sched * ts) tick_nohz_activate() argument
1565 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_nohz_irq_enter() local
1588 tick_nohz_activate(struct tick_sched * ts) tick_nohz_activate() argument
1617 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_setup_sched_timer() local
1650 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); tick_sched_timer_dying() local
1685 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_oneshot_notify() local
1700 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); tick_check_oneshot_change() local
[all...]
/linux/sound/soc/meson/
H A Daxg-tdm-formatter.c30 struct axg_tdm_stream *ts, in axg_tdm_formatter_set_channel_masks() argument
33 unsigned int ch = ts->channels; in axg_tdm_formatter_set_channel_masks()
53 if ((BIT(i + k) & ts->mask[j]) && ch) { in axg_tdm_formatter_set_channel_masks()
82 struct axg_tdm_stream *ts = formatter->stream; in axg_tdm_formatter_enable() local
113 invert = axg_tdm_sclk_invert(ts->iface->fmt); in axg_tdm_formatter_enable()
157 struct axg_tdm_stream *ts = formatter->stream; in axg_tdm_formatter_attach() local
160 guard(mutex)(&ts->lock); in axg_tdm_formatter_attach()
163 if (ts->ready) { in axg_tdm_formatter_attach()
171 list_add_tail(&formatter->list, &ts->formatter_list); in axg_tdm_formatter_attach()
178 struct axg_tdm_stream *ts in axg_tdm_formatter_dettach()
179 struct axg_tdm_stream *ts = formatter->stream; axg_tdm_formatter_dettach() local
191 struct axg_tdm_stream *ts = formatter->drv->ops->get_stream(w); axg_tdm_formatter_power_up() local
328 axg_tdm_stream_start(struct axg_tdm_stream * ts) axg_tdm_stream_start() argument
351 axg_tdm_stream_stop(struct axg_tdm_stream * ts) axg_tdm_stream_stop() argument
369 struct axg_tdm_stream *ts; axg_tdm_stream_alloc() local
382 axg_tdm_stream_free(struct axg_tdm_stream * ts) axg_tdm_stream_free() argument
395 axg_tdm_stream_set_cont_clocks(struct axg_tdm_stream * ts,unsigned int fmt) axg_tdm_stream_set_cont_clocks() argument
[all...]
/linux/drivers/gpu/drm/panel/
H A Dpanel-raspberrypi-touchscreen.c58 #define RPI_DSI_DRIVER_NAME "rpi-ts-dsi"
219 static int rpi_touchscreen_i2c_read(struct rpi_touchscreen *ts, u8 reg) in rpi_touchscreen_i2c_read() argument
221 return i2c_smbus_read_byte_data(ts->i2c, reg); in rpi_touchscreen_i2c_read()
224 static void rpi_touchscreen_i2c_write(struct rpi_touchscreen *ts, in rpi_touchscreen_i2c_write() argument
229 ret = i2c_smbus_write_byte_data(ts->i2c, reg, val); in rpi_touchscreen_i2c_write()
231 dev_err(&ts->i2c->dev, "I2C write failed: %d\n", ret); in rpi_touchscreen_i2c_write()
234 static int rpi_touchscreen_write(struct rpi_touchscreen *ts, u16 reg, u32 val) in rpi_touchscreen_write() argument
245 mipi_dsi_generic_write(ts->dsi, msg, sizeof(msg)); in rpi_touchscreen_write()
252 struct rpi_touchscreen *ts = panel_to_ts(panel); in rpi_touchscreen_disable() local
254 rpi_touchscreen_i2c_write(ts, REG_PWM, 0); in rpi_touchscreen_disable()
[all …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt130 mpp20 20 gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi),
132 mpp21 21 gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql),
134 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk),
136 mpp23 23 gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql),
138 mpp24 24 gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo)
139 mpp25 25 gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk)
140 mpp26 26 gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk)
141 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi)
142 mpp28 28 gpio, ge1(col), ts(mp8), tdm(int), audio(extclk)
143 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst)
[all …]
/linux/include/media/
H A Ddemux.h60 * TS packet reception
66 * @TS_PACKET: Send TS packets (188 bytes) to callback (default).
67 * @TS_PAYLOAD_ONLY: In case TS_PACKET is set, only send the TS payload
70 * @TS_DEMUX: In case TS_PACKET is set, send the TS to the demux
81 * struct dmx_ts_feed - Structure that contains a TS feed filter
86 * @set: sets the TS filter
87 * @start_filtering: starts TS filtering
88 * @stop_filtering: stops TS filtering
90 * A TS feed is typically mapped to a hardware PID filter on the demux chip.
92 * filtering TS packets on a particular TS feed.
[all …]

12345678910>>...45