Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 182) sorted by relevance

12345678

/drivers/target/iscsi/
Discsi_target_tq.c35 static void iscsi_add_ts_to_active_list(struct iscsi_thread_set *ts) in iscsi_add_ts_to_active_list() argument
38 list_add_tail(&ts->ts_list, &active_ts_list); in iscsi_add_ts_to_active_list()
43 static void iscsi_add_ts_to_inactive_list(struct iscsi_thread_set *ts) in iscsi_add_ts_to_inactive_list() argument
46 list_add_tail(&ts->ts_list, &inactive_ts_list); in iscsi_add_ts_to_inactive_list()
51 static void iscsi_del_ts_from_active_list(struct iscsi_thread_set *ts) in iscsi_del_ts_from_active_list() argument
54 list_del(&ts->ts_list); in iscsi_del_ts_from_active_list()
61 struct iscsi_thread_set *ts; in iscsi_get_ts_from_inactive_list() local
69 ts = list_first_entry(&inactive_ts_list, struct iscsi_thread_set, ts_list); in iscsi_get_ts_from_inactive_list()
71 list_del(&ts->ts_list); in iscsi_get_ts_from_inactive_list()
75 return ts; in iscsi_get_ts_from_inactive_list()
[all …]
/drivers/input/touchscreen/
Dad7879.c139 static int ad7879_read(struct ad7879 *ts, u8 reg) in ad7879_read() argument
141 return ts->bops->read(ts->dev, reg); in ad7879_read()
144 static int ad7879_multi_read(struct ad7879 *ts, u8 first_reg, u8 count, u16 *buf) in ad7879_multi_read() argument
146 return ts->bops->multi_read(ts->dev, first_reg, count, buf); in ad7879_multi_read()
149 static int ad7879_write(struct ad7879 *ts, u8 reg, u16 val) in ad7879_write() argument
151 return ts->bops->write(ts->dev, reg, val); in ad7879_write()
154 static int ad7879_report(struct ad7879 *ts) in ad7879_report() argument
156 struct input_dev *input_dev = ts->input; in ad7879_report()
160 x = ts->conversion_data[AD7879_SEQ_XPOS] & MAX_12BIT; in ad7879_report()
161 y = ts->conversion_data[AD7879_SEQ_YPOS] & MAX_12BIT; in ad7879_report()
[all …]
Dtnetv107x-ts.c75 #define tsc_read(ts, reg) __raw_readl(&(ts)->regs->reg) argument
76 #define tsc_write(ts, reg, val) __raw_writel(val, &(ts)->regs->reg); argument
77 #define tsc_set_bits(ts, reg, val) \ argument
78 tsc_write(ts, reg, tsc_read(ts, reg) | (val))
79 #define tsc_clr_bits(ts, reg, val) \ argument
80 tsc_write(ts, reg, tsc_read(ts, reg) & ~(val))
99 static int tsc_read_sample(struct tsc_data *ts, struct sample* sample) in tsc_read_sample() argument
104 val = tsc_read(ts, chval[0]); in tsc_read_sample()
110 y = tsc_read(ts, chval[1]) & 0xffff; in tsc_read_sample()
111 z1 = tsc_read(ts, chval[2]) & 0xffff; in tsc_read_sample()
[all …]
Dcyttsp_core.c80 static int ttsp_read_block_data(struct cyttsp *ts, u8 command, in ttsp_read_block_data() argument
87 error = ts->bus_ops->read(ts, command, length, buf); in ttsp_read_block_data()
97 static int ttsp_write_block_data(struct cyttsp *ts, u8 command, in ttsp_write_block_data() argument
104 error = ts->bus_ops->write(ts, command, length, buf); 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->pdata->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 …]
Dtsc2005.c149 static int tsc2005_cmd(struct tsc2005 *ts, u8 cmd) in tsc2005_cmd() argument
163 error = spi_sync(ts->spi, &msg); in tsc2005_cmd()
165 dev_err(&ts->spi->dev, "%s: failed, command: %x, error: %d\n", in tsc2005_cmd()
173 static int tsc2005_write(struct tsc2005 *ts, u8 reg, u16 value) in tsc2005_write() argument
187 error = spi_sync(ts->spi, &msg); in tsc2005_write()
189 dev_err(&ts->spi->dev, in tsc2005_write()
210 static int tsc2005_read(struct tsc2005 *ts, u8 reg, u16 *value) in tsc2005_read() argument
221 error = spi_sync(ts->spi, &msg); in tsc2005_read()
229 static void tsc2005_update_pen_state(struct tsc2005 *ts, in tsc2005_update_pen_state() argument
233 input_report_abs(ts->idev, ABS_X, x); in tsc2005_update_pen_state()
[all …]
Dads7846.c202 static void ads7846_stop(struct ads7846 *ts) in ads7846_stop() argument
204 if (!ts->disabled && !ts->suspended) { in ads7846_stop()
206 ts->stopped = true; in ads7846_stop()
208 wake_up(&ts->wait); in ads7846_stop()
209 disable_irq(ts->spi->irq); in ads7846_stop()
214 static void ads7846_restart(struct ads7846 *ts) in ads7846_restart() argument
216 if (!ts->disabled && !ts->suspended) { in ads7846_restart()
218 ts->stopped = false; in ads7846_restart()
220 enable_irq(ts->spi->irq); in ads7846_restart()
225 static void __ads7846_disable(struct ads7846 *ts) in __ads7846_disable() argument
[all …]
Ds3c2410_ts.c90 static struct s3c2410ts ts; variable
112 data0 = readl(ts.io + S3C2410_ADCDAT0); in touch_timer_fire()
113 data1 = readl(ts.io + S3C2410_ADCDAT1); in touch_timer_fire()
118 if (ts.count == (1 << ts.shift)) { in touch_timer_fire()
119 ts.xp >>= ts.shift; in touch_timer_fire()
120 ts.yp >>= ts.shift; in touch_timer_fire()
122 dev_dbg(ts.dev, "%s: X=%lu, Y=%lu, count=%d\n", in touch_timer_fire()
123 __func__, ts.xp, ts.yp, ts.count); in touch_timer_fire()
125 input_report_abs(ts.input, ABS_X, ts.xp); in touch_timer_fire()
126 input_report_abs(ts.input, ABS_Y, ts.yp); in touch_timer_fire()
[all …]
Dad7877.c276 struct ad7877 *ts = spi_get_drvdata(spi); in ad7877_read_adc() local
290 AD7877_POL(ts->stopacq_polarity) | in ad7877_read_adc()
292 AD7877_ACQ(ts->acquisition_time) | AD7877_FCD(0); in ad7877_read_adc()
304 req->xfer[1].delay_usecs = ts->vref_delay_usecs; in ad7877_read_adc()
309 req->xfer[2].delay_usecs = ts->vref_delay_usecs; in ad7877_read_adc()
316 req->xfer[4].tx_buf = &ts->cmd_crtl2; /*REF OFF*/ in ad7877_read_adc()
320 req->xfer[5].tx_buf = &ts->cmd_crtl1; /*DEFAULT*/ in ad7877_read_adc()
337 static int ad7877_process_data(struct ad7877 *ts) in ad7877_process_data() argument
339 struct input_dev *input_dev = ts->input; in ad7877_process_data()
343 x = ts->conversion_data[AD7877_SEQ_XPOS] & MAX_12BIT; in ad7877_process_data()
[all …]
Dstmpe-ts.c101 struct stmpe_touch *ts = in stmpe_work() local
104 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
115 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
120 __stmpe_reset_fifo(ts->stmpe); in stmpe_work()
122 input_report_abs(ts->idev, ABS_PRESSURE, 0); in stmpe_work()
123 input_report_key(ts->idev, BTN_TOUCH, 0); in stmpe_work()
124 input_sync(ts->idev); in stmpe_work()
131 struct stmpe_touch *ts = data; in stmpe_ts_handler() local
137 cancel_delayed_work_sync(&ts->work); in stmpe_ts_handler()
145 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_handler()
[all …]
Dtsc2007.c145 static bool tsc2007_is_pen_down(struct tsc2007 *ts) in tsc2007_is_pen_down() argument
161 if (!ts->get_pendown_state) in tsc2007_is_pen_down()
164 return ts->get_pendown_state(); in tsc2007_is_pen_down()
169 struct tsc2007 *ts = handle; in tsc2007_soft_irq() local
170 struct input_dev *input = ts->input; in tsc2007_soft_irq()
174 while (!ts->stopped && tsc2007_is_pen_down(ts)) { in tsc2007_soft_irq()
177 tsc2007_read_values(ts, &tc); in tsc2007_soft_irq()
179 rt = tsc2007_calculate_pressure(ts, &tc); in tsc2007_soft_irq()
181 if (rt == 0 && !ts->get_pendown_state) { in tsc2007_soft_irq()
190 if (rt <= ts->max_rt) { in tsc2007_soft_irq()
[all …]
Dauo-pixcir-ts.c134 static int auo_pixcir_collect_data(struct auo_pixcir_ts *ts, in auo_pixcir_collect_data() argument
137 struct i2c_client *client = ts->client; in auo_pixcir_collect_data()
138 const struct auo_pixcir_ts_platdata *pdata = ts->pdata; in auo_pixcir_collect_data()
183 struct auo_pixcir_ts *ts = dev_id; in auo_pixcir_interrupt() local
184 const struct auo_pixcir_ts_platdata *pdata = ts->pdata; in auo_pixcir_interrupt()
191 while (!ts->stopped) { in auo_pixcir_interrupt()
194 if (ts->touch_ind_mode) { in auo_pixcir_interrupt()
196 input_mt_sync(ts->input); in auo_pixcir_interrupt()
197 input_report_key(ts->input, BTN_TOUCH, 0); in auo_pixcir_interrupt()
198 input_sync(ts->input); in auo_pixcir_interrupt()
[all …]
Dcy8ctmg110_ts.c68 static void cy8ctmg110_power(struct cy8ctmg110 *ts, bool poweron) in cy8ctmg110_power() argument
70 if (ts->reset_pin) in cy8ctmg110_power()
71 gpio_direction_output(ts->reset_pin, 1 - poweron); in cy8ctmg110_power()
152 static int cy8ctmg110_set_sleepmode(struct cy8ctmg110 *ts, bool sleep) in cy8ctmg110_set_sleepmode() argument
166 return cy8ctmg110_write_regs(ts, CY8CTMG110_TOUCH_WAKEUP_TIME, 3, reg_p); in cy8ctmg110_set_sleepmode()
182 struct cy8ctmg110 *ts; in cy8ctmg110_probe() local
196 ts = kzalloc(sizeof(struct cy8ctmg110), GFP_KERNEL); in cy8ctmg110_probe()
198 if (!ts || !input_dev) { in cy8ctmg110_probe()
203 ts->client = client; in cy8ctmg110_probe()
204 ts->input = input_dev; in cy8ctmg110_probe()
[all …]
Dst1232.c57 static int st1232_ts_read_data(struct st1232_ts_data *ts) in st1232_ts_read_data() argument
59 struct st1232_ts_finger *finger = ts->finger; in st1232_ts_read_data()
60 struct i2c_client *client = ts->client; in st1232_ts_read_data()
73 msg[1].addr = ts->client->addr; in st1232_ts_read_data()
104 struct st1232_ts_data *ts = dev_id; in st1232_ts_irq_handler() local
105 struct st1232_ts_finger *finger = ts->finger; in st1232_ts_irq_handler()
106 struct input_dev *input_dev = ts->input_dev; in st1232_ts_irq_handler()
110 ret = st1232_ts_read_data(ts); in st1232_ts_irq_handler()
129 if (ts->low_latency_req.dev) { in st1232_ts_irq_handler()
130 dev_pm_qos_remove_request(&ts->low_latency_req); in st1232_ts_irq_handler()
[all …]
Dcyttsp_spi.c46 static int cyttsp_spi_xfer(struct cyttsp *ts, in cyttsp_spi_xfer() argument
49 struct spi_device *spi = to_spi_device(ts->dev); in cyttsp_spi_xfer()
52 u8 *wr_buf = &ts->xfer_buf[0]; in cyttsp_spi_xfer()
53 u8 *rd_buf = &ts->xfer_buf[CY_SPI_DATA_BUF_SIZE]; in cyttsp_spi_xfer()
58 dev_err(ts->dev, "%s: length %d is too big.\n", in cyttsp_spi_xfer()
98 dev_err(ts->dev, "%s: bad operation code=%d\n", __func__, op); in cyttsp_spi_xfer()
104 dev_dbg(ts->dev, "%s: spi_sync() error %d, len=%d, op=%d\n", in cyttsp_spi_xfer()
117 dev_dbg(ts->dev, "%s: operation %d failed\n", __func__, op); in cyttsp_spi_xfer()
120 dev_dbg(ts->dev, "%s: test rd_buf[%d]:0x%02x\n", in cyttsp_spi_xfer()
123 dev_dbg(ts->dev, "%s: test buf[%d]:0x%02x\n", in cyttsp_spi_xfer()
[all …]
Dcyttsp_i2c.c37 static int cyttsp_i2c_read_block_data(struct cyttsp *ts, in cyttsp_i2c_read_block_data() argument
40 struct i2c_client *client = to_i2c_client(ts->dev); in cyttsp_i2c_read_block_data()
64 static int cyttsp_i2c_write_block_data(struct cyttsp *ts, in cyttsp_i2c_write_block_data() argument
67 struct i2c_client *client = to_i2c_client(ts->dev); in cyttsp_i2c_write_block_data()
70 ts->xfer_buf[0] = addr; in cyttsp_i2c_write_block_data()
71 memcpy(&ts->xfer_buf[1], values, length); in cyttsp_i2c_write_block_data()
73 retval = i2c_master_send(client, ts->xfer_buf, length + 1); in cyttsp_i2c_write_block_data()
87 struct cyttsp *ts; in cyttsp_i2c_probe() local
94 ts = cyttsp_probe(&cyttsp_i2c_bus_ops, &client->dev, client->irq, in cyttsp_i2c_probe()
97 if (IS_ERR(ts)) in cyttsp_i2c_probe()
[all …]
/drivers/mfd/
Ducb1x00-ts.c57 static inline void ucb1x00_ts_evt_add(struct ucb1x00_ts *ts, u16 pressure, u16 x, u16 y) in ucb1x00_ts_evt_add() argument
59 struct input_dev *idev = ts->idev; in ucb1x00_ts_evt_add()
68 static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts) in ucb1x00_ts_event_release() argument
70 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release()
80 static inline void ucb1x00_ts_mode_int(struct ucb1x00_ts *ts) in ucb1x00_ts_mode_int() argument
82 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_mode_int()
92 static inline unsigned int ucb1x00_ts_read_pressure(struct ucb1x00_ts *ts) in ucb1x00_ts_read_pressure() argument
95 ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); in ucb1x00_ts_read_pressure()
96 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure()
102 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); in ucb1x00_ts_read_pressure()
[all …]
/drivers/staging/cptm1217/
Dclearpad_tm1217.c136 static int cp_tm1217_read(struct cp_tm1217_device *ts, in cp_tm1217_read() argument
142 retval = i2c_master_send(ts->client, &req[0], 1); in cp_tm1217_read()
144 dev_err(ts->dev, "cp_tm1217: I2C send failed\n"); in cp_tm1217_read()
149 retval = i2c_master_recv(ts->client, &req[1], size); in cp_tm1217_read()
154 dev_dbg(ts->dev, "cp_tm1217: Retry count is %d\n", i); in cp_tm1217_read()
158 dev_err(ts->dev, "cp_tm1217: Read from device failed\n"); in cp_tm1217_read()
163 static int cp_tm1217_write(struct cp_tm1217_device *ts, in cp_tm1217_write() argument
169 retval = i2c_master_send(ts->client, &req[0], size + 1); in cp_tm1217_write()
171 dev_err(ts->dev, "cp_tm1217: I2C write failed: %d\n", retval); in cp_tm1217_write()
180 static int cp_tm1217_mask_interrupt(struct cp_tm1217_device *ts) in cp_tm1217_mask_interrupt() argument
[all …]
/drivers/gpio/
Dgpio-max730x.c53 struct max7301 *ts = container_of(chip, struct max7301, chip); in max7301_direction_input() local
62 config = &ts->port_config[offset >> 2]; in max7301_direction_input()
64 if (ts->input_pullup_active & BIT(offset)) in max7301_direction_input()
69 mutex_lock(&ts->lock); in max7301_direction_input()
74 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_input()
76 mutex_unlock(&ts->lock); in max7301_direction_input()
81 static int __max7301_set(struct max7301 *ts, unsigned offset, int value) in __max7301_set() argument
84 ts->out_level |= 1 << offset; in __max7301_set()
85 return ts->write(ts->dev, 0x20 + offset, 0x01); in __max7301_set()
87 ts->out_level &= ~(1 << offset); in __max7301_set()
[all …]
/drivers/misc/
Dkgdbts.c187 static struct test_state ts; variable
368 ts.idx -= 2; in check_single_step()
373 ts.idx -= 4; in check_single_step()
402 ts.idx++; in skip_back_repeat_test()
404 ts.idx -= go_back; in skip_back_repeat_test()
405 fill_get_buf(ts.tst[ts.idx].get); in skip_back_repeat_test()
429 ts.idx--; in put_cont_catch()
439 ts.idx = -1; in emul_reset()
527 ts.idx--; in emul_sstep_put()
713 v2printk("get%i: %s\n", ts.idx, get_buf); in fill_get_buf()
[all …]
/drivers/scsi/pm8001/
Dpm80xx_hwi.c1249 struct task_status_struct *ts; in mpi_ssp_completion() local
1270 ts = &t->task_status; in mpi_ssp_completion()
1277 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
1278 ts->stat = SAM_STAT_GOOD; in mpi_ssp_completion()
1280 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
1281 ts->stat = SAS_PROTO_RESPONSE; in mpi_ssp_completion()
1282 ts->residual = param; in mpi_ssp_completion()
1292 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
1293 ts->stat = SAS_ABORTED_TASK; in mpi_ssp_completion()
1300 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
[all …]
Dpm8001_hwi.c1521 struct task_status_struct *ts; in pm8001_work_fn() local
1547 ts = &t->task_status; in pm8001_work_fn()
1548 ts->resp = SAS_TASK_COMPLETE; in pm8001_work_fn()
1550 ts->stat = SAS_QUEUE_FULL; in pm8001_work_fn()
1563 t, pw->handler, ts->resp, ts->stat)); in pm8001_work_fn()
1848 struct task_status_struct *ts; in mpi_ssp_completion() local
1870 ts = &t->task_status; in mpi_ssp_completion()
1876 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
1877 ts->stat = SAM_STAT_GOOD; in mpi_ssp_completion()
1879 ts->resp = SAS_TASK_COMPLETE; in mpi_ssp_completion()
[all …]
/drivers/net/wireless/ath/ath9k/
Ddfs_pri_detector.c31 u64 ts; member
189 if (p->ts >= min_valid_ts) in pulse_queue_check_window()
195 static bool pulse_queue_enqueue(struct pri_detector *pde, u64 ts) in pulse_queue_enqueue() argument
208 p->ts = ts; in pulse_queue_enqueue()
211 pde->last_ts = ts; in pulse_queue_enqueue()
219 u64 ts, u32 min_count) in pseq_handler_create_sequences() argument
227 u32 delta_ts = ts - p->ts; in pseq_handler_create_sequences()
240 ps.first_ts = p->ts; in pseq_handler_create_sequences()
241 ps.last_ts = ts; in pseq_handler_create_sequences()
242 ps.pri = ts - p->ts; in pseq_handler_create_sequences()
[all …]
Dar9002_mac.c276 struct ath_tx_status *ts) in ar9002_hw_proc_txdesc() argument
285 ts->ts_tstamp = ads->AR_SendTimestamp; in ar9002_hw_proc_txdesc()
286 ts->ts_status = 0; in ar9002_hw_proc_txdesc()
287 ts->ts_flags = 0; in ar9002_hw_proc_txdesc()
290 ts->ts_status |= ATH9K_TXERR_XTXOP; in ar9002_hw_proc_txdesc()
291 ts->tid = MS(status, AR_TxTid); in ar9002_hw_proc_txdesc()
292 ts->ts_rateindex = MS(status, AR_FinalTxIdx); in ar9002_hw_proc_txdesc()
293 ts->ts_seqnum = MS(status, AR_SeqNum); in ar9002_hw_proc_txdesc()
296 ts->ts_rssi_ctl0 = MS(status, AR_TxRSSIAnt00); in ar9002_hw_proc_txdesc()
297 ts->ts_rssi_ctl1 = MS(status, AR_TxRSSIAnt01); in ar9002_hw_proc_txdesc()
[all …]
/drivers/scsi/aic94xx/
Daic94xx_task.c163 struct task_status_struct *ts = &task->task_status; in asd_get_response_tasklet() local
187 ts->buf_valid_size = 0; in asd_get_response_tasklet()
194 ts->residual = le32_to_cpu(*(__le32 *)r); in asd_get_response_tasklet()
198 struct ata_task_resp *resp = (void *) &ts->buf[0]; in asd_get_response_tasklet()
200 ts->residual = le32_to_cpu(*(__le32 *)r); in asd_get_response_tasklet()
205 ts->buf_valid_size = sizeof(*resp); in asd_get_response_tasklet()
216 struct task_status_struct *ts = &task->task_status; in asd_task_tasklet_complete() local
225 ts->resp = SAS_TASK_COMPLETE; in asd_task_tasklet_complete()
226 ts->stat = SAM_STAT_GOOD; in asd_task_tasklet_complete()
229 ts->resp = SAS_TASK_COMPLETE; in asd_task_tasklet_complete()
[all …]
/drivers/connector/
Dcn_proc.c47 static inline void get_seq(__u32 *ts, int *cpu) in get_seq() argument
50 *ts = __this_cpu_inc_return(proc_event_counts) - 1; in get_seq()
60 struct timespec ts; in proc_fork_connector() local
69 ktime_get_ts(&ts); /* get high res monotonic timestamp */ in proc_fork_connector()
70 put_unaligned(timespec_to_ns(&ts), (__u64 *)&ev->timestamp_ns); in proc_fork_connector()
91 struct timespec ts; in proc_exec_connector() local
100 ktime_get_ts(&ts); /* get high res monotonic timestamp */ in proc_exec_connector()
101 put_unaligned(timespec_to_ns(&ts), (__u64 *)&ev->timestamp_ns); in proc_exec_connector()
117 struct timespec ts; in proc_id_connector() local
142 ktime_get_ts(&ts); /* get high res monotonic timestamp */ in proc_id_connector()
[all …]

12345678