/linux-master/drivers/input/touchscreen/ |
H A D | tps6507x-ts.c | 50 static int tps6507x_read_u8(struct tps6507x_ts *tsc, u8 reg, u8 *data) argument 52 return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); 55 static int tps6507x_write_u8(struct tps6507x_ts *tsc, u8 reg, u8 data) argument 57 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); 60 static s32 tps6507x_adc_conversion(struct tps6507x_ts *tsc, argument 69 ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc_mode); 71 dev_err(tsc->dev, "TSC mode read failed\n"); 77 ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFI 119 tps6507x_adc_standby(struct tps6507x_ts *tsc) argument 150 struct tps6507x_ts *tsc = input_get_drvdata(input_dev); local 203 struct tps6507x_ts *tsc; local [all...] |
H A D | imx6ul_tsc.c | 103 static int imx6ul_adc_init(struct imx6ul_tsc *tsc) argument 111 reinit_completion(&tsc->completion); 113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); 118 if (tsc->average_enable) { 120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; 123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); 128 writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); 131 adc_gc = readl(tsc->adc_regs + REG_ADC_GC); 133 if (tsc->average_enable) 135 writel(adc_gc, tsc 163 imx6ul_tsc_channel_config(struct imx6ul_tsc *tsc) argument 188 imx6ul_tsc_set(struct imx6ul_tsc *tsc) argument 211 imx6ul_tsc_init(struct imx6ul_tsc *tsc) argument 224 imx6ul_tsc_disable(struct imx6ul_tsc *tsc) argument 241 tsc_wait_detect_mode(struct imx6ul_tsc *tsc) argument 262 struct imx6ul_tsc *tsc = dev_id; local 305 struct imx6ul_tsc *tsc = dev_id; local 317 imx6ul_tsc_start(struct imx6ul_tsc *tsc) argument 350 imx6ul_tsc_stop(struct imx6ul_tsc *tsc) argument 361 struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); local 368 struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); local 376 struct imx6ul_tsc *tsc; local 518 struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); local 534 struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); local [all...] |
H A D | lpc32xx_ts.c | 71 static void lpc32xx_fifo_clear(struct lpc32xx_tsc *tsc) argument 73 while (!(tsc_readl(tsc, LPC32XX_TSC_STAT) & 75 tsc_readl(tsc, LPC32XX_TSC_FIFO); 82 struct lpc32xx_tsc *tsc = dev_id; local 83 struct input_dev *input = tsc->dev; 85 tmp = tsc_readl(tsc, LPC32XX_TSC_STAT); 89 lpc32xx_fifo_clear(tsc); 100 !(tsc_readl(tsc, LPC32XX_TSC_STAT) & 102 tmp = tsc_readl(tsc, LPC32XX_TSC_FIFO); 126 static void lpc32xx_stop_tsc(struct lpc32xx_tsc *tsc) argument 136 lpc32xx_setup_tsc(struct lpc32xx_tsc *tsc) argument 187 struct lpc32xx_tsc *tsc = input_get_drvdata(dev); local 194 struct lpc32xx_tsc *tsc = input_get_drvdata(dev); local 202 struct lpc32xx_tsc *tsc; local 273 struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); local 298 struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); local [all...] |
H A D | tsc2007_iio.c | 42 struct tsc2007 *tsc = iio->ts; local 52 mutex_lock(&tsc->mlock); 56 *val = tsc2007_xfer(tsc, READ_X); 59 *val = tsc2007_xfer(tsc, READ_Y); 62 *val = tsc2007_xfer(tsc, READ_Z1); 65 *val = tsc2007_xfer(tsc, READ_Z2); 68 *val = tsc2007_xfer(tsc, (ADC_ON_12BIT | TSC2007_MEASURE_AUX)); 73 tc.x = tsc2007_xfer(tsc, READ_X); 74 tc.z1 = tsc2007_xfer(tsc, READ_Z1); 75 tc.z2 = tsc2007_xfer(tsc, READ_Z [all...] |
H A D | tsc2007_core.c | 31 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) argument 36 data = i2c_smbus_read_word_data(tsc->client, cmd); 38 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); 48 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); 53 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) argument 56 tc->y = tsc2007_xfer(tsc, READ_Y); 59 tc->x = tsc2007_xfer(tsc, READ_X); 62 tc->z1 = tsc2007_xfer(tsc, READ_Z1); 63 tc->z2 = tsc2007_xfer(tsc, READ_Z2); 66 tsc2007_xfer(tsc, PWRDOW 69 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc) argument [all...] |
H A D | cy8ctmg110_ts.c | 61 static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg, argument 64 struct i2c_client *client = tsc->client; 82 static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, argument 85 struct i2c_client *client = tsc->client; 110 static int cy8ctmg110_touch_pos(struct cy8ctmg110 *tsc) argument 112 struct input_dev *input = tsc->input; 118 if (cy8ctmg110_read_regs(tsc, reg_p, 9, CY8CTMG110_TOUCH_X1) != 0) 156 struct cy8ctmg110 *tsc = dev_id; local 158 cy8ctmg110_touch_pos(tsc);
|
H A D | tsc2007.h | 86 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd); 87 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
|
/linux-master/drivers/thermal/ |
H A D | rcar_gen3_thermal.c | 99 static inline u32 rcar_gen3_thermal_read(struct rcar_gen3_thermal_tsc *tsc, argument 102 return ioread32(tsc->base + reg); 105 static inline void rcar_gen3_thermal_write(struct rcar_gen3_thermal_tsc *tsc, argument 108 iowrite32(data, tsc->base + reg); 140 struct rcar_gen3_thermal_tsc *tsc, 149 tsc->tj_t = (FIXPT_INT((priv->ptat[1] - priv->ptat[2]) * (ths_tj_1 - TJ_3)) 152 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[2]), 153 tsc 139 rcar_gen3_thermal_calc_coefs(struct rcar_gen3_thermal_priv *priv, struct rcar_gen3_thermal_tsc *tsc, int ths_tj_1) argument 173 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz); local 196 rcar_gen3_thermal_mcelsius_to_temp(struct rcar_gen3_thermal_tsc *tsc, int mcelsius) argument 212 struct rcar_gen3_thermal_tsc *tsc = thermal_zone_device_priv(tz); local 271 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; local 299 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; local 333 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; local 347 rcar_gen3_thermal_init(struct rcar_gen3_thermal_priv *priv, struct rcar_gen3_thermal_tsc *tsc) argument 507 struct rcar_gen3_thermal_tsc *tsc; local 534 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; local 581 struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; local [all...] |
/linux-master/tools/perf/arch/x86/util/ |
H A D | tsc.c | 8 #include "../../../util/tsc.h" 62 static double tsc; local 66 return tsc; 78 tsc = cpuinfo_tsc_freq(); 79 return tsc; 85 tsc = cpuinfo_tsc_freq(); 86 return tsc; 89 tsc = (double)c * (double)b / (double)a; 90 return tsc;
|
/linux-master/tools/testing/selftests/prctl/ |
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-master/arch/x86/include/asm/ |
H A D | timex.h | 6 #include <asm/tsc.h>
|
H A D | stackprotector.h | 32 #include <asm/tsc.h>
|
H A D | tsc.h | 42 extern unsigned long long native_sched_clock_from_tsc(u64 tsc);
|
H A D | pvclock.h | 83 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) argument 85 u64 delta = tsc - src->tsc_timestamp;
|
/linux-master/drivers/cpufreq/ |
H A D | amd-pstate-trace.h | 33 u64 tsc, 45 tsc, 58 __field(unsigned long long, tsc) 71 __entry->tsc = tsc; 77 TP_printk("amd_min_perf=%lu amd_des_perf=%lu amd_max_perf=%lu freq=%llu mperf=%llu aperf=%llu tsc=%llu cpu_id=%u changed=%s fast_switch=%s", 84 (unsigned long long)__entry->tsc,
|
/linux-master/drivers/thermal/tegra/ |
H A D | tegra30-tsensor.c | 163 const struct tegra_tsensor_channel *tsc = thermal_zone_device_priv(tz); local 164 const struct tegra_tsensor *ts = tsc->ts; 172 err = readl_relaxed_poll_timeout(tsc->regs + TSENSOR_SENSOR0_STATUS0, val, 177 dev_err_once(ts->dev, "ch%u: counter invalid\n", tsc->id); 181 val = readl_relaxed(tsc->regs + TSENSOR_SENSOR0_TS_STATUS1); 190 dev_err_once(ts->dev, "ch%u: counter overflow\n", tsc->id); 221 const struct tegra_tsensor_channel *tsc = thermal_zone_device_priv(tz); local 222 const struct tegra_tsensor *ts = tsc->ts; 232 val = readl_relaxed(tsc->regs + TSENSOR_SENSOR0_CONFIG1); 237 writel_relaxed(val, tsc 251 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; local 283 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; local 347 const struct tegra_tsensor_channel *tsc = &ts->ch[id]; local 505 struct tegra_tsensor_channel *tsc = &ts->ch[id]; local [all...] |
/linux-master/include/trace/events/ |
H A D | mce.h | 27 __field( u64, tsc ) 47 __entry->tsc = m->tsc; 65 __entry->tsc,
|
H A D | power.h | 95 u64 tsc, 106 tsc, 118 __field(u64, tsc) 130 __entry->tsc = tsc; 135 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu", 142 (unsigned long long)__entry->tsc,
|
/linux-master/tools/arch/x86/include/asm/ |
H A D | pvclock.h | 79 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) argument 81 u64 delta = tsc - src->tsc_timestamp;
|
/linux-master/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 26 long long tsc, old_tsc, new_tsc; local 82 tsc = new_tsc-old_tsc; 91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total);
|
/linux-master/arch/x86/include/uapi/asm/ |
H A D | mce.h | 19 __u64 tsc; /* CPU time stamp counter */ member in struct:mce
|
/linux-master/drivers/clocksource/ |
H A D | timer-tegra186.c | 89 struct clocksource tsc; member in struct:tegra186_timer 298 tsc); 321 tegra->tsc.name = "tsc"; 322 tegra->tsc.rating = 300; 323 tegra->tsc.read = tegra186_timer_tsc_read; 324 tegra->tsc.mask = CLOCKSOURCE_MASK(56); 325 tegra->tsc.flags = CLOCK_SOURCE_IS_CONTINUOUS; 327 return clocksource_register_hz(&tegra->tsc, 31250000); 445 clocksource_unregister(&tegra->tsc); [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | stp.h | 17 u32 tsc : 1; /* Timing status change */ member in struct:stp_irq_parm
|
/linux-master/include/linux/ |
H A D | amd-pstate.h | 27 * @tsc: time stamp counter 32 u64 tsc; member in struct:amd_aperf_mperf 56 * @cur: Difference of Aperf/Mperf/tsc count between last and current sample 57 * @prev: Last Aperf/Mperf/tsc count value read from register
|
/linux-master/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 155 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): 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)
|