Home
last modified time | relevance | path

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

12

/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.h88 int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd);
89 u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc);
A Dti_am335x_tsc.c67 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()
/drivers/thermal/renesas/
A Drcar_gen3_thermal.c157 tsc->coef.below.b = (priv->ptat[2] - priv->ptat[0]) * (tsc->thcode[2] - tsc->thcode[1]); in rcar_gen3_thermal_tsc_coefs()
158 tsc->coef.above.b = (priv->ptat[0] - priv->ptat[2]) * (tsc->thcode[1] - tsc->thcode[0]); in rcar_gen3_thermal_tsc_coefs()
173 coef = &tsc->coef.below; in rcar_gen3_thermal_get_temp()
281 tsc->thcode[0] = rcar_gen3_thermal_read(tsc, fuses->thcode[0]) in rcar_gen3_thermal_fetch_fuses()
283 tsc->thcode[1] = rcar_gen3_thermal_read(tsc, fuses->thcode[1]) in rcar_gen3_thermal_fetch_fuses()
285 tsc->thcode[2] = rcar_gen3_thermal_read(tsc, fuses->thcode[2]) in rcar_gen3_thermal_fetch_fuses()
512 tsc = devm_kzalloc(dev, sizeof(*tsc), GFP_KERNEL); in rcar_gen3_thermal_probe()
513 if (!tsc) { in rcar_gen3_thermal_probe()
518 tsc->priv = priv; in rcar_gen3_thermal_probe()
525 priv->tscs[i] = tsc; in rcar_gen3_thermal_probe()
[all …]
/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 …]
/drivers/cpufreq/
A Damd-pstate-trace.h33 u64 tsc,
44 tsc,
56 __field(unsigned long long, tsc)
68 __entry->tsc = tsc;
80 (unsigned long long)__entry->tsc,
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()
590 cpudata->cur.mperf, cpudata->cur.aperf, cpudata->cur.tsc, in amd_pstate_update()
A Damd-pstate.h57 u64 tsc; member
A Dintel_pstate.c117 u64 tsc; member
2547 u64 tsc; in intel_pstate_sample() local
2552 tsc = rdtsc(); in intel_pstate_sample()
2553 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample()
2563 cpu->sample.tsc = tsc; in intel_pstate_sample()
2566 cpu->sample.tsc -= cpu->prev_tsc; in intel_pstate_sample()
2570 cpu->prev_tsc = tsc; in intel_pstate_sample()
2603 sample->tsc); in get_target_pstate()
2666 sample->tsc, in intel_pstate_adjust_pstate()
3204 sample->tsc, in intel_cpufreq_trace()
/drivers/clocksource/
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()
481 clocksource_unregister(&tegra->tsc); in tegra186_timer_remove()
/drivers/hte/
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()
A Dhte-tegra194-test.c73 desc->attr.line_id, ts->seq, ts->tsc, in process_hw_ts()
/drivers/ptp/
A Dptp_kvm_x86.c123 *cycle = __pvclock_read_cycles(src, clock_pair->tsc); in kvm_arch_ptp_get_crosststamp()
/drivers/net/wireless/intel/iwlwifi/fw/api/
A Dd3.h437 struct tkip_sc tsc; member
447 struct aes_sc tsc; member
/drivers/net/wireless/ath/ath6kl/
A Dmain.c680 u8 tsc[6]; in ath6kl_tkip_micerr_event() local
694 memset(tsc, 0, sizeof(tsc)); /* FIX: get correct TSC */ in ath6kl_tkip_micerr_event()
697 tsc, GFP_KERNEL); in ath6kl_tkip_micerr_event()
/drivers/edac/
A Dmce_amd.c873 if (m->tsc) in amd_decode_mce()
874 pr_emerg(HW_ERR "TSC: %llu\n", m->tsc); in amd_decode_mce()
/drivers/net/fjes/
A Dfjes_hw.h273 u64 tsc; member
/drivers/xen/
A Dmcelog.c282 m.tsc = mc_bank->mc_tsc; in convert_log()
/drivers/net/wireless/intel/iwlwifi/dvm/
A Dlib.c909 tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; in iwlagn_wowlan_program_keys()
964 aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; in iwlagn_wowlan_program_keys()
/drivers/net/wireless/intel/iwlwifi/mvm/
A Dd3.c241 &data->rsc_tsc->all_tsc_rsc.tkip.tsc; in iwl_mvm_wowlan_get_rsc_tsc_data()
274 &data->rsc_tsc->all_tsc_rsc.aes.tsc; in iwl_mvm_wowlan_get_rsc_tsc_data()
1701 status->ptk.tkip.tx_pn = (u64)le16_to_cpu(sc->tkip.tsc.iv16) | in iwl_mvm_convert_key_counters()
1702 ((u64)le32_to_cpu(sc->tkip.tsc.iv32) << 16); in iwl_mvm_convert_key_counters()
1703 status->ptk.aes.tx_pn = le64_to_cpu(sc->aes.tsc.pn); in iwl_mvm_convert_key_counters()

Completed in 60 milliseconds

12