Home
last modified time | relevance | path

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

123456

/linux/drivers/input/touchscreen/
H A Dimx6ul_tsc.c103 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 in imx6ul_adc_init()
163 imx6ul_tsc_channel_config(struct imx6ul_tsc * tsc) imx6ul_tsc_channel_config() argument
188 imx6ul_tsc_set(struct imx6ul_tsc * tsc) imx6ul_tsc_set() argument
211 imx6ul_tsc_init(struct imx6ul_tsc * tsc) imx6ul_tsc_init() argument
224 imx6ul_tsc_disable(struct imx6ul_tsc * tsc) imx6ul_tsc_disable() argument
241 tsc_wait_detect_mode(struct imx6ul_tsc * tsc) tsc_wait_detect_mode() argument
262 struct imx6ul_tsc *tsc = dev_id; tsc_irq_fn() local
305 struct imx6ul_tsc *tsc = dev_id; adc_irq_fn() local
317 imx6ul_tsc_start(struct imx6ul_tsc * tsc) imx6ul_tsc_start() argument
350 imx6ul_tsc_stop(struct imx6ul_tsc * tsc) imx6ul_tsc_stop() argument
361 struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); imx6ul_tsc_open() local
368 struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); imx6ul_tsc_close() local
376 struct imx6ul_tsc *tsc; imx6ul_tsc_probe() local
518 struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); imx6ul_tsc_suspend() local
534 struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); imx6ul_tsc_resume() local
[all...]
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_ADCONFI in tps6507x_adc_conversion()
119 tps6507x_adc_standby(struct tps6507x_ts * tsc) tps6507x_adc_standby() argument
150 struct tps6507x_ts *tsc = input_get_drvdata(input_dev); tps6507x_ts_poll() local
203 struct tps6507x_ts *tsc; tps6507x_ts_probe() local
[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
136 lpc32xx_setup_tsc(struct lpc32xx_tsc * tsc) lpc32xx_setup_tsc() argument
187 struct lpc32xx_tsc *tsc = input_get_drvdata(dev); lpc32xx_ts_open() local
194 struct lpc32xx_tsc *tsc = input_get_drvdata(dev); lpc32xx_ts_close() local
202 struct lpc32xx_tsc *tsc; lpc32xx_ts_probe() local
273 struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); lpc32xx_ts_suspend() local
298 struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); lpc32xx_ts_resume() local
[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_Z 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/renesas/
H A Drcar_gen3_thermal.c109 static inline u32 rcar_gen3_thermal_read(struct rcar_gen3_thermal_tsc *tsc, in rcar_gen3_thermal_read() argument
112 return ioread32(tsc->base + reg); in rcar_gen3_thermal_read()
115 static inline void rcar_gen3_thermal_write(struct rcar_gen3_thermal_tsc *tsc, in rcar_gen3_thermal_write() argument
118 iowrite32(data, tsc->base + reg); in rcar_gen3_thermal_write()
152 struct rcar_gen3_thermal_tsc *tsc) in rcar_gen3_thermal_tsc_coefs() argument
154 tsc->coef.below.a = priv->info->scale * (priv->ptat[2] - priv->ptat[1]); in rcar_gen3_thermal_tsc_coefs()
155 tsc->coef.above.a = priv->info->scale * (priv->ptat[0] - priv->ptat[1]); in rcar_gen3_thermal_tsc_coefs()
157 tsc->coef.below.b = (priv->ptat[2] - priv->ptat[0]) * (tsc->thcode[2] - tsc in rcar_gen3_thermal_tsc_coefs()
163 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz); rcar_gen3_thermal_get_temp() local
197 rcar_gen3_thermal_mcelsius_to_temp(struct rcar_gen3_thermal_tsc * tsc,int mcelsius) rcar_gen3_thermal_mcelsius_to_temp() argument
220 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz); rcar_gen3_thermal_set_trips() local
279 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; rcar_gen3_thermal_fetch_fuses() local
313 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; rcar_gen3_thermal_read_fuses() local
329 rcar_gen3_thermal_init(struct rcar_gen3_thermal_priv * priv,struct rcar_gen3_thermal_tsc * tsc) rcar_gen3_thermal_init() argument
506 struct rcar_gen3_thermal_tsc *tsc; rcar_gen3_thermal_probe() local
536 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; rcar_gen3_thermal_probe() local
579 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; rcar_gen3_thermal_resume() local
[all...]
/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 in tegra_tsensor_set_trips()
251 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; tegra_tsensor_handle_channel_interrupt() local
283 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; tegra_tsensor_disable_hw_channel() local
351 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; tegra_tsensor_enable_hw_channel() local
510 struct tegra_tsensor_channel *tsc = &ts->ch[id]; tegra_tsensor_register_channel() local
[all...]
/linux/tools/perf/arch/x86/util/
H A Dtsc.c8 #include "../../../util/tsc.h"
64 static double tsc; in arch_get_tsc_freq() local
68 return tsc; in arch_get_tsc_freq()
80 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
81 return tsc; in arch_get_tsc_freq()
87 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
88 return tsc; in arch_get_tsc_freq()
91 tsc = (u64)c * (u64)b / (u64)a; in arch_get_tsc_freq()
92 return tsc; in arch_get_tsc_freq()
/linux/drivers/cpufreq/
H A Damd-pstate-trace.h33 u64 tsc,
44 tsc,
56 __field(unsigned long long, tsc)
68 __entry->tsc = tsc;
73 TP_printk("amd_min_perf=%hhu amd_des_perf=%hhu amd_max_perf=%hhu freq=%llu mperf=%llu aperf=%llu tsc=%llu cpu_id=%u fast_switch=%s",
80 (unsigned long long)__entry->tsc,
H A Damd-pstate.c535 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()
[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/drivers/clocksource/
H A Dtimer-tegra186.c94 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()
[all...]
/linux/include/trace/events/
H A Dmce.h35 __field( u64, tsc )
58 __entry->tsc = err->m.tsc;
81 __entry->tsc,
H A Dpower.h112 u64 tsc,
123 tsc,
135 __field(u64, tsc)
147 __entry->tsc = tsc;
152 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu",
159 (unsigned long long)__entry->tsc,
/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.py275 """ Plot all cpu tsc ghz """
326 def store_csv(cpu_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask): argument
336 string_buffer = "CPU_%03u, %05u, %06u, %u, %u, %u, %u, %u, %u, %u, %.4f, %u, %.2f, %.3f, %u, %.3f, %.3f, %s\n" % (cpu_int, int(time_pre_dec), int(time_post_dec), int(core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(tsc), freq_ghz, int(io_boost), load, duration_ms, sample_num, elapsed_time, tsc_ghz, common_comm)
368 f_handle.write('common_cpu, common_secs, common_usecs, core_busy, scaled_busy, from, to, mperf, aperf, tsc, freq, boost, load, duration_ms, sample_num, elapsed_time, tsc_ghz, common_comm')
434 re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?core_busy=)(\d+)(.*?scaled=)(\d+)(.*?from=)(\d+)(.*?to=)(\d+)(.*?mperf=)(\d+)(.*?aperf=)(\d+)(.*?tsc=)(\d+)(.*?freq=)(\d+)'
450 tsc = search_obj.group(22)
473 load = Decimal(int(mperf)*100)/ Decimal(tsc)
479 tsc_ghz = Decimal(tsc)/duration_ms/Decimal(1000000)
480 store_csv(cpu_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask)
/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/arch/x86/include/asm/vdso/
H A Dgettimeofday.h229 u64 tsc, time; in vread_hvclock() local
231 if (hv_read_tsc_page_tsc(&hvclock_page, &tsc, &time)) in vread_hvclock()
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ulz-14x14-evk.dts15 /delete-node/ &tsc;
/linux/arch/x86/include/uapi/asm/
H A Dmce.h20 __u64 tsc; /* CPU time stamp counter */ member
/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

123456