/linux/drivers/input/touchscreen/ |
H A D | imx6ul_tsc.c | 103 static int imx6ul_adc_init(struct imx6ul_tsc *tsc) in imx6ul_adc_init() argument 111 reinit_completion(&tsc->completion); in imx6ul_adc_init() 113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 118 if (tsc->average_enable) { in imx6ul_adc_init() 120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; in imx6ul_adc_init() 123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 128 writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); in imx6ul_adc_init() 131 adc_gc = readl(tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init() 133 if (tsc->average_enable) in imx6ul_adc_init() 135 writel(adc_gc, tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init() [all …]
|
H A D | tps6507x-ts.c | 50 static int tps6507x_read_u8(struct tps6507x_ts *tsc, u8 reg, u8 *data) in tps6507x_read_u8() argument 52 return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); in tps6507x_read_u8() 55 static int tps6507x_write_u8(struct tps6507x_ts *tsc, u8 reg, u8 data) in tps6507x_write_u8() argument 57 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); in tps6507x_write_u8() 60 static s32 tps6507x_adc_conversion(struct tps6507x_ts *tsc, in tps6507x_adc_conversion() argument 69 ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc_mode); in tps6507x_adc_conversion() 71 dev_err(tsc->dev, "TSC mode read failed\n"); in tps6507x_adc_conversion() 77 ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion() 80 dev_err(tsc->dev, "ADC config write failed\n"); in tps6507x_adc_conversion() 85 ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion() [all …]
|
H A D | lpc32xx_ts.c | 71 static void lpc32xx_fifo_clear(struct lpc32xx_tsc *tsc) in lpc32xx_fifo_clear() argument 73 while (!(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_fifo_clear() 75 tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_fifo_clear() 82 struct lpc32xx_tsc *tsc = dev_id; in lpc32xx_ts_interrupt() local 83 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt() 85 tmp = tsc_readl(tsc, LPC32XX_TSC_STAT); in lpc32xx_ts_interrupt() 89 lpc32xx_fifo_clear(tsc); in lpc32xx_ts_interrupt() 100 !(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_ts_interrupt() 102 tmp = tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_ts_interrupt() 126 static void lpc32xx_stop_tsc(struct lpc32xx_tsc *tsc) in lpc32xx_stop_tsc() argument [all …]
|
H A D | tsc2007_iio.c | 42 struct tsc2007 *tsc = iio->ts; in tsc2007_read_raw() local 52 mutex_lock(&tsc->mlock); in tsc2007_read_raw() 56 *val = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw() 59 *val = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_raw() 62 *val = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw() 65 *val = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw() 68 *val = tsc2007_xfer(tsc, (ADC_ON_12BIT | TSC2007_MEASURE_AUX)); in tsc2007_read_raw() 73 tc.x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw() 74 tc.z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_raw() 75 tc.z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_raw() [all …]
|
H A D | cy8ctmg110_ts.c | 61 static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg, in cy8ctmg110_write_regs() argument 64 struct i2c_client *client = tsc->client; in cy8ctmg110_write_regs() 82 static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, in cy8ctmg110_read_regs() argument 85 struct i2c_client *client = tsc->client; in cy8ctmg110_read_regs() 110 static int cy8ctmg110_touch_pos(struct cy8ctmg110 *tsc) in cy8ctmg110_touch_pos() argument 112 struct input_dev *input = tsc->input; in cy8ctmg110_touch_pos() 118 if (cy8ctmg110_read_regs(tsc, reg_p, 9, CY8CTMG110_TOUCH_X1) != 0) in cy8ctmg110_touch_pos() 156 struct cy8ctmg110 *tsc = dev_id; in cy8ctmg110_irq_thread() local 158 cy8ctmg110_touch_pos(tsc); in cy8ctmg110_irq_thread()
|
H A D | tsc2007_core.c | 31 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) in tsc2007_xfer() argument 36 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer() 38 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer() 48 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer() 53 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument 56 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values() 59 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values() 62 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values() 63 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values() 66 tsc2007_xfer(tsc, PWRDOWN); in tsc2007_read_values() [all …]
|
H A D | tsc2007.h | 88 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd); 89 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
|
H A D | ti_am335x_tsc.c | 67 static void titsc_writel(struct titsc *tsc, unsigned int reg, in titsc_writel() argument 70 writel(val, tsc->mfd_tscadc->tscadc_base + reg); in titsc_writel() 429 tscadc_dev->tsc = ts_dev; in titsc_probe()
|
/linux/drivers/thermal/tegra/ |
H A D | tegra30-tsensor.c | 163 const struct tegra_tsensor_channel *tsc = thermal_zone_device_priv(tz); in tegra_tsensor_get_temp() local 164 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_get_temp() 172 err = readl_relaxed_poll_timeout(tsc->regs + TSENSOR_SENSOR0_STATUS0, val, in tegra_tsensor_get_temp() 177 dev_err_once(ts->dev, "ch%u: counter invalid\n", tsc->id); in tegra_tsensor_get_temp() 181 val = readl_relaxed(tsc->regs + TSENSOR_SENSOR0_TS_STATUS1); in tegra_tsensor_get_temp() 190 dev_err_once(ts->dev, "ch%u: counter overflow\n", tsc->id); in tegra_tsensor_get_temp() 221 const struct tegra_tsensor_channel *tsc = thermal_zone_device_priv(tz); in tegra_tsensor_set_trips() local 222 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_set_trips() 232 val = readl_relaxed(tsc->regs + TSENSOR_SENSOR0_CONFIG1); in tegra_tsensor_set_trips() 237 writel_relaxed(val, tsc->regs + TSENSOR_SENSOR0_CONFIG1); in tegra_tsensor_set_trips() [all …]
|
/linux/tools/testing/selftests/prctl/ |
H A D | .gitignore | 2 disable-tsc-ctxt-sw-stress-test 3 disable-tsc-on-off-stress-test 4 disable-tsc-test
|
H A D | Makefile | 7 TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \ 8 disable-tsc-test set-anon-vma-name-test set-process-name
|
/linux/drivers/clocksource/ |
H A D | timer-tegra186.c | 94 struct clocksource tsc; member 348 tsc); in tegra186_timer_tsc_read() 371 tegra->tsc.name = "tsc"; in tegra186_timer_tsc_init() 372 tegra->tsc.rating = 300; in tegra186_timer_tsc_init() 373 tegra->tsc.read = tegra186_timer_tsc_read; in tegra186_timer_tsc_init() 374 tegra->tsc.mask = CLOCKSOURCE_MASK(56); in tegra186_timer_tsc_init() 375 tegra->tsc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_tsc_init() 377 return clocksource_register_hz(&tegra->tsc, 31250000); in tegra186_timer_tsc_init() 471 clocksource_unregister(&tegra->tsc); in tegra186_timer_probe() 481 clocksource_unregister(&tegra->tsc); in tegra186_timer_remove()
|
/linux/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 26 long long tsc, old_tsc, new_tsc; in main() local 82 tsc = new_tsc-old_tsc; in main() 91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
|
/linux/include/trace/events/ |
H A D | power.h | 112 u64 tsc, 123 tsc, 135 __field(u64, tsc) 147 __entry->tsc = tsc; 159 (unsigned long long)__entry->tsc,
|
/linux/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 155 …_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load,… argument 165 …perf), int(des_perf), int(max_perf), freq_ghz, int(mperf), int(aperf), int(tsc), load, duration_ms… 215 tsc = search_obj.group(22) 232 load = Decimal(int(mperf)*100)/ Decimal(tsc) 234 …_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load,…
|
/linux/tools/arch/x86/include/asm/ |
H A D | pvclock.h | 79 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) in __pvclock_read_cycles() argument 81 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles()
|
/linux/arch/x86/include/asm/ |
H A D | pvclock.h | 84 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) in __pvclock_read_cycles() argument 86 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles()
|
/linux/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 326 … time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost… argument 336 …core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(tsc), freq_ghz, int(io_… 450 tsc = search_obj.group(22) 473 load = Decimal(int(mperf)*100)/ Decimal(tsc) 479 tsc_ghz = Decimal(tsc)/duration_ms/Decimal(1000000) 480 … time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost…
|
/linux/tools/power/cpupower/utils/idle_monitor/ |
H A D | mperf_monitor.c | 83 static int mperf_get_tsc(unsigned long long *tsc) in mperf_get_tsc() argument 87 ret = read_msr(base_cpu, MSR_TSC, tsc); in mperf_get_tsc() 89 dprint("Reading TSC MSR failed, returning %llu\n", *tsc); in mperf_get_tsc()
|
/linux/drivers/cpufreq/ |
H A D | amd-pstate.c | 535 u64 aperf, mperf, tsc; in amd_pstate_sample() local 541 tsc = rdtsc(); in amd_pstate_sample() 543 if (cpudata->prev.mperf == mperf || cpudata->prev.tsc == tsc) { in amd_pstate_sample() 552 cpudata->cur.tsc = tsc; in amd_pstate_sample() 555 cpudata->cur.tsc -= cpudata->prev.tsc; in amd_pstate_sample() 559 cpudata->prev.tsc = tsc; in amd_pstate_sample() 590 cpudata->cur.mperf, cpudata->cur.aperf, cpudata->cur.tsc, in amd_pstate_update()
|
H A D | amd-pstate.h | 57 u64 tsc; member
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | brcm,iproc-touchscreen.txt | 9 - clocks: The clock provided by the SOC to driver the tsc 21 the tsc waits to allow the voltage to settle after
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ulz-14x14-evk.dts | 15 /delete-node/ &tsc;
|
/linux/drivers/hte/ |
H A D | hte-tegra194.c | 604 u64 tsc; in tegra_hte_read_fifo() local 612 tsc = (((u64)tsh << 32) | tsl); in tegra_hte_read_fifo() 624 el.tsc = tsc << HTE_TS_NS_SHIFT; in tegra_hte_read_fifo()
|
/linux/tools/testing/ktest/examples/bootconfigs/ |
H A D | boottrace.bconf | 47 trace_clock = x86-tsc
|