Home
last modified time | relevance | path

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

123456

/linux/drivers/input/touchscreen/
A Dimx6ul_tsc.c133 if (tsc->average_enable) in imx6ul_adc_init()
199 writel(tsc->pre_charge_time, tsc->tsc_regs + REG_TSC_PRE_CHARGE_TIME); in imx6ul_tsc_set()
219 imx6ul_tsc_set(tsc); in imx6ul_tsc_init()
323 dev_err(tsc->dev, in imx6ul_tsc_start()
331 dev_err(tsc->dev, in imx6ul_tsc_start()
370 imx6ul_tsc_stop(tsc); in imx6ul_tsc_close()
376 struct imx6ul_tsc *tsc; in imx6ul_tsc_probe() local
383 tsc = devm_kzalloc(&pdev->dev, sizeof(*tsc), GFP_KERNEL); in imx6ul_tsc_probe()
384 if (!tsc) in imx6ul_tsc_probe()
403 tsc->dev = &pdev->dev; in imx6ul_tsc_probe()
[all …]
A Dtps6507x-ts.c52 return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); in tps6507x_read_u8()
57 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); in tps6507x_write_u8()
159 pendown = tsc->tc.pressure > tsc->min_pressure; in tps6507x_ts_poll()
166 tsc->pendown = false; in tps6507x_ts_poll()
171 if (!tsc->pendown) { in tps6507x_ts_poll()
178 &tsc->tc.x); in tps6507x_ts_poll()
183 &tsc->tc.y); in tps6507x_ts_poll()
191 tsc->pendown = true; in tps6507x_ts_poll()
225 if (!tsc) { in tps6507x_ts_probe()
235 snprintf(tsc->phys, sizeof(tsc->phys), in tps6507x_ts_probe()
[all …]
A Dlpc32xx_ts.c89 lpc32xx_fifo_clear(tsc); in lpc32xx_ts_interrupt()
177 lpc32xx_fifo_clear(tsc); in lpc32xx_setup_tsc()
196 lpc32xx_stop_tsc(tsc); in lpc32xx_ts_close()
202 struct lpc32xx_tsc *tsc; in lpc32xx_ts_probe() local
211 tsc = devm_kzalloc(dev, sizeof(*tsc), GFP_KERNEL); in lpc32xx_ts_probe()
212 if (!tsc) in lpc32xx_ts_probe()
215 tsc->irq = irq; in lpc32xx_ts_probe()
222 if (IS_ERR(tsc->clk)) { in lpc32xx_ts_probe()
249 tsc->dev = input; in lpc32xx_ts_probe()
252 0, pdev->name, tsc); in lpc32xx_ts_probe()
[all …]
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()
73 tc.x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_raw()
80 *val = tsc2007_is_pen_down(tsc); in tsc2007_read_raw()
83 *val = tsc2007_xfer(tsc, in tsc2007_read_raw()
87 *val = tsc2007_xfer(tsc, in tsc2007_read_raw()
93 tsc2007_xfer(tsc, PWRDOWN); in tsc2007_read_raw()
[all …]
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()
A Dtsc2007_core.c31 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 …]
A Dtsc2007.h86 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd);
87 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
/linux/drivers/thermal/renesas/
A Drcar_gen3_thermal.c151 tsc->coef.below.b = (priv->ptat[2] - priv->ptat[0]) * (tsc->thcode[2] - tsc->thcode[1]); in rcar_gen3_thermal_tsc_coefs()
152 tsc->coef.above.b = (priv->ptat[0] - priv->ptat[2]) * (tsc->thcode[1] - tsc->thcode[0]); in rcar_gen3_thermal_tsc_coefs()
275 tsc->thcode[0] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE1) & in rcar_gen3_thermal_read_fuses_gen3()
277 tsc->thcode[1] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE2) & in rcar_gen3_thermal_read_fuses_gen3()
279 tsc->thcode[2] = rcar_gen3_thermal_read(tsc, REG_GEN3_THCODE3) & in rcar_gen3_thermal_read_fuses_gen3()
303 tsc->thcode[0] = rcar_gen3_thermal_read(tsc, REG_GEN4_THSFMON01) & in rcar_gen3_thermal_read_fuses_gen4()
305 tsc->thcode[1] = rcar_gen3_thermal_read(tsc, REG_GEN4_THSFMON02) & in rcar_gen3_thermal_read_fuses_gen4()
307 tsc->thcode[2] = rcar_gen3_thermal_read(tsc, REG_GEN4_THSFMON00) & in rcar_gen3_thermal_read_fuses_gen4()
521 tsc = devm_kzalloc(dev, sizeof(*tsc), GFP_KERNEL); in rcar_gen3_thermal_probe()
522 if (!tsc) { in rcar_gen3_thermal_probe()
[all …]
/linux/drivers/thermal/tegra/
A Dtegra30-tsensor.c164 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_get_temp()
222 const struct tegra_tsensor *ts = tsc->ts; in tegra_tsensor_set_trips()
284 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_disable_hw_channel()
352 struct thermal_zone_device *tzd = tsc->tzd; in tegra_tsensor_enable_hw_channel()
513 tsc->ts = ts; in tegra_tsensor_register_channel()
514 tsc->id = id; in tegra_tsensor_register_channel()
515 tsc->regs = ts->regs + 0x40 * (hw_id + 1); in tegra_tsensor_register_channel()
517 tsc->tzd = devm_thermal_of_zone_register(ts->dev, id, tsc, &ops); in tegra_tsensor_register_channel()
518 if (IS_ERR(tsc->tzd)) { in tegra_tsensor_register_channel()
519 if (PTR_ERR(tsc->tzd) != -ENODEV) in tegra_tsensor_register_channel()
[all …]
/linux/tools/perf/arch/x86/util/
A Dtsc.c62 static double tsc; in arch_get_tsc_freq() local
66 return tsc; in arch_get_tsc_freq()
78 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
79 return tsc; in arch_get_tsc_freq()
85 tsc = cpuinfo_tsc_freq(); in arch_get_tsc_freq()
86 return tsc; in arch_get_tsc_freq()
89 tsc = (double)c * (double)b / (double)a; in arch_get_tsc_freq()
90 return tsc; in arch_get_tsc_freq()
/linux/drivers/cpufreq/
A Damd-pstate-trace.h33 u64 tsc,
45 tsc,
58 __field(unsigned long long, tsc)
71 __entry->tsc = tsc;
84 (unsigned long long)__entry->tsc,
/linux/tools/testing/selftests/prctl/
A D.gitignore2 disable-tsc-ctxt-sw-stress-test
3 disable-tsc-on-off-stress-test
4 disable-tsc-test
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/Documentation/devicetree/bindings/input/touchscreen/
A Dlpc32xx-tsc.txt4 - compatible: must be "nxp,lpc3220-tsc"
11 tsc@40048000 {
12 compatible = "nxp,lpc3220-tsc";
A Dfsl,imx6ul-tsc.yaml4 $id: http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml#
16 const: fsl,imx6ul-tsc
33 - const: tsc
84 compatible = "fsl,imx6ul-tsc";
90 clock-names = "tsc", "adc";
A Dti,am3359-tsc.yaml4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml#
14 const: ti,am3359-tsc
69 tsc {
70 compatible = "ti,am3359-tsc";
/linux/drivers/clocksource/
A Dtimer-tegra186.c89 struct clocksource tsc; member
298 tsc); in tegra186_timer_tsc_read()
321 tegra->tsc.name = "tsc"; in tegra186_timer_tsc_init()
322 tegra->tsc.rating = 300; in tegra186_timer_tsc_init()
323 tegra->tsc.read = tegra186_timer_tsc_read; in tegra186_timer_tsc_init()
324 tegra->tsc.mask = CLOCKSOURCE_MASK(56); in tegra186_timer_tsc_init()
325 tegra->tsc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_tsc_init()
327 return clocksource_register_hz(&tegra->tsc, 31250000); in tegra186_timer_tsc_init()
445 clocksource_unregister(&tegra->tsc); in tegra186_timer_probe()
455 clocksource_unregister(&tegra->tsc); in tegra186_timer_remove()
/linux/include/trace/events/
A Dmce.h35 __field( u64, tsc )
57 __entry->tsc = m->tsc;
79 __entry->tsc,
A Dpower.h95 u64 tsc,
106 tsc,
118 __field(u64, tsc)
130 __entry->tsc = tsc;
142 (unsigned long long)__entry->tsc,
/linux/arch/x86/kernel/
A Dtsc.c259 return cycles_2_ns(tsc); in native_sched_clock_from_tsc()
428 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
458 tsc = t1 = t2 = get_cycles(); in pit_calibrate_tsc()
465 delta = t2 - tsc; in pit_calibrate_tsc()
466 tsc = t2; in pit_calibrate_tsc()
537 u64 tsc = 0, prev_tsc = 0; in pit_expect_msb() local
542 prev_tsc = tsc; in pit_expect_msb()
543 tsc = get_cycles(); in pit_expect_msb()
546 *tscp = tsc; in pit_expect_msb()
567 u64 tsc, delta; in quick_pit_calibrate() local
[all …]
/linux/tools/testing/selftests/intel_pstate/
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/
A Damd_pstate_trace.py155 …_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/
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/arch/x86/include/asm/
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/Documentation/devicetree/bindings/mfd/
A Dti,am3359-tscadc.yaml47 tsc:
80 tsc {

Completed in 49 milliseconds

123456