Home
last modified time | relevance | path

Searched refs:tsc (Results 1 – 25 of 95) sorted by relevance

1234

/linux/drivers/input/touchscreen/
H A Dtps6507x-ts.c50 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 Dlpc32xx_ts.c71 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 Dtsc2007_iio.c42 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 Dcy8ctmg110_ts.c61 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 Dtsc2007.h88 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd);
89 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
/linux/drivers/thermal/tegra/
H A Dtegra30-tsensor.c163 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/drivers/clocksource/
H A Dtimer-tegra186.c94 struct clocksource tsc; member
349 tsc); in tegra186_timer_tsc_read()
372 tegra->tsc.name = "tsc"; in tegra186_timer_tsc_init()
373 tegra->tsc.rating = 300; in tegra186_timer_tsc_init()
374 tegra->tsc.read = tegra186_timer_tsc_read; in tegra186_timer_tsc_init()
375 tegra->tsc.mask = CLOCKSOURCE_MASK(56); in tegra186_timer_tsc_init()
376 tegra->tsc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_tsc_init()
377 tegra->tsc.owner = THIS_MODULE; in tegra186_timer_tsc_init()
379 return clocksource_register_hz(&tegra->tsc, 31250000); in tegra186_timer_tsc_init()
475 clocksource_unregister(&tegra->tsc); in tegra186_timer_probe()
[all …]
/linux/tools/testing/selftests/prctl/
H A D.gitignore2 disable-tsc-ctxt-sw-stress-test
3 disable-tsc-on-off-stress-test
4 disable-tsc-test
H A DMakefile7 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/tools/testing/selftests/intel_pstate/
H A Daperf.c26 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/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py155 def store_csv(cpu_int, time_pre_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask): argument
165 string_buffer = "CPU_%03u, %05u, %06u, %u, %u, %u, %.4f, %u, %u, %u, %.2f, %.3f, %u, %.3f, %s\n" % (cpu_int, int(time_pre_dec), int(time_post_dec), int(min_perf), int(des_perf), int(max_perf), freq_ghz, int(mperf), int(aperf), int(tsc), load, duration_ms, sample_num, elapsed_time, common_comm)
181 f_handle.write('common_cpu, common_secs, common_usecs, min_perf, des_perf, max_perf, freq, mperf, aperf, tsc, load, duration_ms, sample_num, elapsed_time, common_comm')
199 re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?amd_min_perf=)(\d+)(.*?amd_des_perf=)(\d+)(.*?amd_max_perf=)(\d+)(.*?freq=)(\d+)(.*?mperf=)(\d+)(.*?aperf=)(\d+)(.*?tsc=)(\d+)'
215 tsc = search_obj.group(22)
232 load = Decimal(int(mperf)*100)/ Decimal(tsc)
234 store_csv(cpu_int, time_pre_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask)
/linux/tools/arch/x86/include/asm/
H A Dpvclock.h79 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/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py326 … 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/arch/x86/include/asm/
H A Dpvclock.h84 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/cpupower/utils/idle_monitor/
H A Dmperf_monitor.c83 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 Damd-pstate.c537 u64 aperf, mperf, tsc; in amd_pstate_sample() local
543 tsc = rdtsc(); in amd_pstate_sample()
545 if (cpudata->prev.mperf == mperf || cpudata->prev.tsc == tsc) { in amd_pstate_sample()
554 cpudata->cur.tsc = tsc; in amd_pstate_sample()
557 cpudata->cur.tsc -= cpudata->prev.tsc; in amd_pstate_sample()
561 cpudata->prev.tsc = tsc; in amd_pstate_sample()
592 cpudata->cur.mperf, cpudata->cur.aperf, cpudata->cur.tsc, in amd_pstate_update()
H A Damd-pstate.h57 u64 tsc; member
/linux/tools/perf/pmu-events/
H A Dintel_metrics.py22 tsc = Event("msr/tsc/")
23 low = max(tsc - cyc, 0)
27 d_ratio(low, tsc), "100%")
422 tsc = Event("msr/tsc/")
424 low = tsc - c0
438 d_ratio(low, tsc), "100%"),
H A Damd_metrics.py399 tsc = Event("msr/tsc/")
400 low = max(tsc - cyc, 0)
404 d_ratio(low, tsc), "100%")
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dbrcm,iproc-touchscreen.txt9 - 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 Dimx6ulz-14x14-evk.dts15 /delete-node/ &tsc;
/linux/tools/perf/arch/arm64/util/
H A DBuild11 perf-util-y += tsc.o
/linux/arch/x86/kernel/apic/
H A Dapic.c425 u64 tsc; in lapic_next_deadline() local
430 tsc = rdtsc(); in lapic_next_deadline()
431 wrmsrq(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR)); in lapic_next_deadline()
659 unsigned long long tsc = 0; in lapic_cal_handler() local
664 tsc = rdtsc(); in lapic_cal_handler()
669 lapic_cal_tsc1 = tsc; in lapic_cal_handler()
676 lapic_cal_tsc2 = tsc; in lapic_cal_handler()
/linux/tools/perf/arch/x86/util/
H A DBuild2 perf-util-y += tsc.o
/linux/drivers/hte/
H A Dhte-tegra194.c604 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()

1234