tsc 44 arch/c6x/kernel/time.c u64 tsc = get_cycles(); tsc 46 arch/c6x/kernel/time.c return (tsc * sched_clock_multiplier) >> SCHED_CLOCK_SHIFT; tsc 15 arch/s390/include/asm/stp.h unsigned int tsc : 1; /* Timing status change */ tsc 561 arch/s390/kernel/time.c if (intparm->tsc || intparm->lac || intparm->tcpc) tsc 260 arch/x86/events/intel/ds.c u64 tsc; tsc 1475 arch/x86/events/intel/ds.c data->time = native_sched_clock_from_tsc(pebs->tsc); tsc 1534 arch/x86/events/intel/ds.c data->time = native_sched_clock_from_tsc(basic->tsc); tsc 107 arch/x86/events/intel/pt.c PMU_FORMAT_ATTR(tsc, "config:10" ); tsc 109 arch/x86/events/msr.c PMU_EVENT_ATTR_STRING(tsc, attr_tsc, "event=0x00" ); tsc 1574 arch/x86/include/asm/kvm_host.h u64 kvm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc); tsc 195 arch/x86/include/asm/perf_event.h u64 tsc; tsc 82 arch/x86/include/asm/pvclock.h u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) tsc 84 arch/x86/include/asm/pvclock.h u64 delta = tsc - src->tsc_timestamp; tsc 69 arch/x86/include/asm/stackprotector.h u64 tsc; tsc 81 arch/x86/include/asm/stackprotector.h tsc = rdtsc(); tsc 82 arch/x86/include/asm/stackprotector.h canary += tsc + (tsc << 32UL); tsc 45 arch/x86/include/asm/tsc.h extern unsigned long long native_sched_clock_from_tsc(u64 tsc); tsc 70 arch/x86/include/uapi/asm/kvm_para.h __u64 tsc; tsc 19 arch/x86/include/uapi/asm/mce.h __u64 tsc; /* CPU time stamp counter */ tsc 473 arch/x86/kernel/apic/apic.c u64 tsc; tsc 475 arch/x86/kernel/apic/apic.c tsc = rdtsc(); tsc 476 arch/x86/kernel/apic/apic.c wrmsrl(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR)); tsc 729 arch/x86/kernel/apic/apic.c unsigned long long tsc = 0; tsc 734 arch/x86/kernel/apic/apic.c tsc = rdtsc(); tsc 739 arch/x86/kernel/apic/apic.c lapic_cal_tsc1 = tsc; tsc 746 arch/x86/kernel/apic/apic.c lapic_cal_tsc2 = tsc; tsc 882 arch/x86/kernel/cpu/mce/amd.c m.tsc = rdtsc(); tsc 46 arch/x86/kernel/cpu/mce/apei.c m.tsc = rdtsc(); tsc 261 arch/x86/kernel/cpu/mce/core.c pr_emerg(HW_ERR "TSC %llx ", m->tsc); tsc 711 arch/x86/kernel/cpu/mce/core.c m.tsc = rdtsc(); tsc 1267 arch/x86/kernel/cpu/mce/core.c m.tsc = rdtsc(); tsc 488 arch/x86/kernel/cpu/mce/inject.c i_mce.tsc = rdtsc_ordered(); tsc 235 arch/x86/kernel/tsc.c u64 native_sched_clock_from_tsc(u64 tsc) tsc 237 arch/x86/kernel/tsc.c return cycles_2_ns(tsc); tsc 383 arch/x86/kernel/tsc.c u64 tsc, t1, t2, delta; tsc 413 arch/x86/kernel/tsc.c tsc = t1 = t2 = get_cycles(); tsc 420 arch/x86/kernel/tsc.c delta = t2 - tsc; tsc 421 arch/x86/kernel/tsc.c tsc = t2; tsc 492 arch/x86/kernel/tsc.c u64 tsc = 0, prev_tsc = 0; tsc 497 arch/x86/kernel/tsc.c prev_tsc = tsc; tsc 498 arch/x86/kernel/tsc.c tsc = get_cycles(); tsc 501 arch/x86/kernel/tsc.c *tscp = tsc; tsc 522 arch/x86/kernel/tsc.c u64 tsc, delta; tsc 554 arch/x86/kernel/tsc.c if (pit_expect_msb(0xff, &tsc, &d1)) { tsc 559 arch/x86/kernel/tsc.c delta -= tsc; tsc 3627 arch/x86/kvm/emulate.c u64 tsc = 0; tsc 3629 arch/x86/kvm/emulate.c ctxt->ops->get_msr(ctxt, MSR_IA32_TSC, &tsc); tsc 3630 arch/x86/kvm/emulate.c *reg_write(ctxt, VCPU_REGS_RAX) = (u32)tsc; tsc 3631 arch/x86/kvm/emulate.c *reg_write(ctxt, VCPU_REGS_RDX) = tsc >> 32; tsc 400 arch/x86/kvm/hyperv.c u64 tsc; tsc 410 arch/x86/kvm/hyperv.c tsc = kvm_read_l1_tsc(vcpu, rdtsc()); tsc 411 arch/x86/kvm/hyperv.c return mul_u64_u64_shr(tsc, hv->tsc_ref.tsc_scale, 64) tsc 1831 arch/x86/kvm/x86.c u64 tsc = pvclock_scale_delta(kernel_ns-vcpu->arch.this_tsc_nsec, tsc 1834 arch/x86/kvm/x86.c tsc += vcpu->arch.this_tsc_write; tsc 1835 arch/x86/kvm/x86.c return tsc; tsc 1887 arch/x86/kvm/x86.c static inline u64 __scale_tsc(u64 ratio, u64 tsc) tsc 1889 arch/x86/kvm/x86.c return mul_u64_u64_shr(tsc, ratio, kvm_tsc_scaling_ratio_frac_bits); tsc 1892 arch/x86/kvm/x86.c u64 kvm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) tsc 1894 arch/x86/kvm/x86.c u64 _tsc = tsc; tsc 1898 arch/x86/kvm/x86.c _tsc = __scale_tsc(ratio, tsc); tsc 1906 arch/x86/kvm/x86.c u64 tsc; tsc 1908 arch/x86/kvm/x86.c tsc = kvm_scale_tsc(vcpu, rdtsc()); tsc 1910 arch/x86/kvm/x86.c return target_tsc - tsc; tsc 2420 arch/x86/kvm/x86.c u64 tsc = compute_guest_tsc(v, kernel_ns); tsc 2421 arch/x86/kvm/x86.c if (tsc > tsc_timestamp) { tsc 2422 arch/x86/kvm/x86.c adjust_tsc_offset_guest(v, tsc - tsc_timestamp); tsc 2423 arch/x86/kvm/x86.c tsc_timestamp = tsc; tsc 7388 arch/x86/kvm/x86.c clock_pairing.tsc = kvm_read_l1_tsc(vcpu, cycle); tsc 121 drivers/cpufreq/intel_pstate.c u64 tsc; tsc 1708 drivers/cpufreq/intel_pstate.c u64 tsc; tsc 1713 drivers/cpufreq/intel_pstate.c tsc = rdtsc(); tsc 1714 drivers/cpufreq/intel_pstate.c if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { tsc 1724 drivers/cpufreq/intel_pstate.c cpu->sample.tsc = tsc; tsc 1727 drivers/cpufreq/intel_pstate.c cpu->sample.tsc -= cpu->prev_tsc; tsc 1731 drivers/cpufreq/intel_pstate.c cpu->prev_tsc = tsc; tsc 1764 drivers/cpufreq/intel_pstate.c sample->tsc); tsc 1829 drivers/cpufreq/intel_pstate.c sample->tsc, tsc 2315 drivers/cpufreq/intel_pstate.c sample->tsc, tsc 1102 drivers/edac/mce_amd.c if (m->tsc) tsc 1103 drivers/edac/mce_amd.c pr_emerg(HW_ERR "TSC: %llu\n", m->tsc); tsc 1423 drivers/edac/pnd2_edac.c pnd2_mc_printk(mci, KERN_INFO, "TSC %llx ", mce->tsc); tsc 3177 drivers/edac/sb_edac.c sbridge_mc_printk(mci, KERN_DEBUG, "TSC %llx ", mce->tsc); tsc 608 drivers/edac/skx_common.c skx_mc_printk(mci, KERN_DEBUG, "TSC 0x%llx ", mce->tsc); tsc 62 drivers/input/touchscreen/cy8ctmg110_ts.c static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg, tsc 65 drivers/input/touchscreen/cy8ctmg110_ts.c struct i2c_client *client = tsc->client; tsc 83 drivers/input/touchscreen/cy8ctmg110_ts.c static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, tsc 86 drivers/input/touchscreen/cy8ctmg110_ts.c struct i2c_client *client = tsc->client; tsc 111 drivers/input/touchscreen/cy8ctmg110_ts.c static int cy8ctmg110_touch_pos(struct cy8ctmg110 *tsc) tsc 113 drivers/input/touchscreen/cy8ctmg110_ts.c struct input_dev *input = tsc->input; tsc 120 drivers/input/touchscreen/cy8ctmg110_ts.c if (cy8ctmg110_read_regs(tsc, reg_p, 9, CY8CTMG110_TOUCH_X1) != 0) tsc 159 drivers/input/touchscreen/cy8ctmg110_ts.c struct cy8ctmg110 *tsc = dev_id; tsc 161 drivers/input/touchscreen/cy8ctmg110_ts.c cy8ctmg110_touch_pos(tsc); tsc 103 drivers/input/touchscreen/imx6ul_tsc.c static int imx6ul_adc_init(struct imx6ul_tsc *tsc) tsc 111 drivers/input/touchscreen/imx6ul_tsc.c reinit_completion(&tsc->completion); tsc 113 drivers/input/touchscreen/imx6ul_tsc.c adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); tsc 118 drivers/input/touchscreen/imx6ul_tsc.c if (tsc->average_enable) { tsc 120 drivers/input/touchscreen/imx6ul_tsc.c adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; tsc 123 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); tsc 128 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); tsc 131 drivers/input/touchscreen/imx6ul_tsc.c adc_gc = readl(tsc->adc_regs + REG_ADC_GC); tsc 133 drivers/input/touchscreen/imx6ul_tsc.c if (tsc->average_enable) tsc 135 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_gc, tsc->adc_regs + REG_ADC_GC); tsc 138 drivers/input/touchscreen/imx6ul_tsc.c (&tsc->completion, ADC_TIMEOUT); tsc 140 drivers/input/touchscreen/imx6ul_tsc.c dev_err(tsc->dev, "Timeout for adc calibration\n"); tsc 144 drivers/input/touchscreen/imx6ul_tsc.c adc_gs = readl(tsc->adc_regs + REG_ADC_GS); tsc 146 drivers/input/touchscreen/imx6ul_tsc.c dev_err(tsc->dev, "ADC calibration failed\n"); tsc 151 drivers/input/touchscreen/imx6ul_tsc.c adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); tsc 153 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); tsc 163 drivers/input/touchscreen/imx6ul_tsc.c static void imx6ul_tsc_channel_config(struct imx6ul_tsc *tsc) tsc 168 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc0, tsc->adc_regs + REG_ADC_HC0); tsc 171 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc1, tsc->adc_regs + REG_ADC_HC1); tsc 174 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc2, tsc->adc_regs + REG_ADC_HC2); tsc 177 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc3, tsc->adc_regs + REG_ADC_HC3); tsc 180 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_hc4, tsc->adc_regs + REG_ADC_HC4); tsc 188 drivers/input/touchscreen/imx6ul_tsc.c static void imx6ul_tsc_set(struct imx6ul_tsc *tsc) tsc 193 drivers/input/touchscreen/imx6ul_tsc.c basic_setting |= tsc->measure_delay_time << 8; tsc 195 drivers/input/touchscreen/imx6ul_tsc.c writel(basic_setting, tsc->tsc_regs + REG_TSC_BASIC_SETING); tsc 197 drivers/input/touchscreen/imx6ul_tsc.c writel(DE_GLITCH_2, tsc->tsc_regs + REG_TSC_DEBUG_MODE2); tsc 199 drivers/input/touchscreen/imx6ul_tsc.c writel(tsc->pre_charge_time, tsc->tsc_regs + REG_TSC_PRE_CHARGE_TIME); tsc 200 drivers/input/touchscreen/imx6ul_tsc.c writel(MEASURE_INT_EN, tsc->tsc_regs + REG_TSC_INT_EN); tsc 202 drivers/input/touchscreen/imx6ul_tsc.c tsc->tsc_regs + REG_TSC_INT_SIG_EN); tsc 205 drivers/input/touchscreen/imx6ul_tsc.c start = readl(tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 208 drivers/input/touchscreen/imx6ul_tsc.c writel(start, tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 211 drivers/input/touchscreen/imx6ul_tsc.c static int imx6ul_tsc_init(struct imx6ul_tsc *tsc) tsc 215 drivers/input/touchscreen/imx6ul_tsc.c err = imx6ul_adc_init(tsc); tsc 218 drivers/input/touchscreen/imx6ul_tsc.c imx6ul_tsc_channel_config(tsc); tsc 219 drivers/input/touchscreen/imx6ul_tsc.c imx6ul_tsc_set(tsc); tsc 224 drivers/input/touchscreen/imx6ul_tsc.c static void imx6ul_tsc_disable(struct imx6ul_tsc *tsc) tsc 230 drivers/input/touchscreen/imx6ul_tsc.c tsc_flow = readl(tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 232 drivers/input/touchscreen/imx6ul_tsc.c writel(tsc_flow, tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 235 drivers/input/touchscreen/imx6ul_tsc.c adc_cfg = readl(tsc->adc_regs + REG_ADC_HC0); tsc 237 drivers/input/touchscreen/imx6ul_tsc.c writel(adc_cfg, tsc->adc_regs + REG_ADC_HC0); tsc 241 drivers/input/touchscreen/imx6ul_tsc.c static bool tsc_wait_detect_mode(struct imx6ul_tsc *tsc) tsc 252 drivers/input/touchscreen/imx6ul_tsc.c debug_mode2 = readl(tsc->tsc_regs + REG_TSC_DEBUG_MODE2); tsc 262 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = dev_id; tsc 268 drivers/input/touchscreen/imx6ul_tsc.c status = readl(tsc->tsc_regs + REG_TSC_INT_STATUS); tsc 272 drivers/input/touchscreen/imx6ul_tsc.c tsc->tsc_regs + REG_TSC_INT_STATUS); tsc 275 drivers/input/touchscreen/imx6ul_tsc.c start = readl(tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 277 drivers/input/touchscreen/imx6ul_tsc.c writel(start, tsc->tsc_regs + REG_TSC_FLOW_CONTROL); tsc 280 drivers/input/touchscreen/imx6ul_tsc.c value = readl(tsc->tsc_regs + REG_TSC_MEASURE_VALUE); tsc 288 drivers/input/touchscreen/imx6ul_tsc.c if (!tsc_wait_detect_mode(tsc) || tsc 289 drivers/input/touchscreen/imx6ul_tsc.c gpiod_get_value_cansleep(tsc->xnur_gpio)) { tsc 290 drivers/input/touchscreen/imx6ul_tsc.c input_report_key(tsc->input, BTN_TOUCH, 1); tsc 291 drivers/input/touchscreen/imx6ul_tsc.c input_report_abs(tsc->input, ABS_X, x); tsc 292 drivers/input/touchscreen/imx6ul_tsc.c input_report_abs(tsc->input, ABS_Y, y); tsc 294 drivers/input/touchscreen/imx6ul_tsc.c input_report_key(tsc->input, BTN_TOUCH, 0); tsc 297 drivers/input/touchscreen/imx6ul_tsc.c input_sync(tsc->input); tsc 305 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = dev_id; tsc 309 drivers/input/touchscreen/imx6ul_tsc.c coco = readl(tsc->adc_regs + REG_ADC_HS); tsc 311 drivers/input/touchscreen/imx6ul_tsc.c value = readl(tsc->adc_regs + REG_ADC_R0); tsc 312 drivers/input/touchscreen/imx6ul_tsc.c complete(&tsc->completion); tsc 320 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); tsc 323 drivers/input/touchscreen/imx6ul_tsc.c err = clk_prepare_enable(tsc->adc_clk); tsc 325 drivers/input/touchscreen/imx6ul_tsc.c dev_err(tsc->dev, tsc 331 drivers/input/touchscreen/imx6ul_tsc.c err = clk_prepare_enable(tsc->tsc_clk); tsc 333 drivers/input/touchscreen/imx6ul_tsc.c dev_err(tsc->dev, tsc 339 drivers/input/touchscreen/imx6ul_tsc.c err = imx6ul_tsc_init(tsc); tsc 346 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->tsc_clk); tsc 348 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->adc_clk); tsc 354 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = input_get_drvdata(input_dev); tsc 356 drivers/input/touchscreen/imx6ul_tsc.c imx6ul_tsc_disable(tsc); tsc 358 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->tsc_clk); tsc 359 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->adc_clk); tsc 365 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc; tsc 372 drivers/input/touchscreen/imx6ul_tsc.c tsc = devm_kzalloc(&pdev->dev, sizeof(*tsc), GFP_KERNEL); tsc 373 drivers/input/touchscreen/imx6ul_tsc.c if (!tsc) tsc 390 drivers/input/touchscreen/imx6ul_tsc.c input_set_drvdata(input_dev, tsc); tsc 392 drivers/input/touchscreen/imx6ul_tsc.c tsc->dev = &pdev->dev; tsc 393 drivers/input/touchscreen/imx6ul_tsc.c tsc->input = input_dev; tsc 394 drivers/input/touchscreen/imx6ul_tsc.c init_completion(&tsc->completion); tsc 396 drivers/input/touchscreen/imx6ul_tsc.c tsc->xnur_gpio = devm_gpiod_get(&pdev->dev, "xnur", GPIOD_IN); tsc 397 drivers/input/touchscreen/imx6ul_tsc.c if (IS_ERR(tsc->xnur_gpio)) { tsc 398 drivers/input/touchscreen/imx6ul_tsc.c err = PTR_ERR(tsc->xnur_gpio); tsc 404 drivers/input/touchscreen/imx6ul_tsc.c tsc->tsc_regs = devm_platform_ioremap_resource(pdev, 0); tsc 405 drivers/input/touchscreen/imx6ul_tsc.c if (IS_ERR(tsc->tsc_regs)) { tsc 406 drivers/input/touchscreen/imx6ul_tsc.c err = PTR_ERR(tsc->tsc_regs); tsc 411 drivers/input/touchscreen/imx6ul_tsc.c tsc->adc_regs = devm_platform_ioremap_resource(pdev, 1); tsc 412 drivers/input/touchscreen/imx6ul_tsc.c if (IS_ERR(tsc->adc_regs)) { tsc 413 drivers/input/touchscreen/imx6ul_tsc.c err = PTR_ERR(tsc->adc_regs); tsc 418 drivers/input/touchscreen/imx6ul_tsc.c tsc->tsc_clk = devm_clk_get(&pdev->dev, "tsc"); tsc 419 drivers/input/touchscreen/imx6ul_tsc.c if (IS_ERR(tsc->tsc_clk)) { tsc 420 drivers/input/touchscreen/imx6ul_tsc.c err = PTR_ERR(tsc->tsc_clk); tsc 425 drivers/input/touchscreen/imx6ul_tsc.c tsc->adc_clk = devm_clk_get(&pdev->dev, "adc"); tsc 426 drivers/input/touchscreen/imx6ul_tsc.c if (IS_ERR(tsc->adc_clk)) { tsc 427 drivers/input/touchscreen/imx6ul_tsc.c err = PTR_ERR(tsc->adc_clk); tsc 440 drivers/input/touchscreen/imx6ul_tsc.c err = devm_request_threaded_irq(tsc->dev, tsc_irq, tsc 442 drivers/input/touchscreen/imx6ul_tsc.c dev_name(&pdev->dev), tsc); tsc 450 drivers/input/touchscreen/imx6ul_tsc.c err = devm_request_irq(tsc->dev, adc_irq, adc_irq_fn, 0, tsc 451 drivers/input/touchscreen/imx6ul_tsc.c dev_name(&pdev->dev), tsc); tsc 460 drivers/input/touchscreen/imx6ul_tsc.c &tsc->measure_delay_time); tsc 462 drivers/input/touchscreen/imx6ul_tsc.c tsc->measure_delay_time = 0xffff; tsc 465 drivers/input/touchscreen/imx6ul_tsc.c &tsc->pre_charge_time); tsc 467 drivers/input/touchscreen/imx6ul_tsc.c tsc->pre_charge_time = 0xfff; tsc 476 drivers/input/touchscreen/imx6ul_tsc.c tsc->average_enable = false; tsc 477 drivers/input/touchscreen/imx6ul_tsc.c tsc->average_select = 0; /* value unused; initialize anyway */ tsc 483 drivers/input/touchscreen/imx6ul_tsc.c tsc->average_enable = true; tsc 484 drivers/input/touchscreen/imx6ul_tsc.c tsc->average_select = ilog2(average_samples) - 2; tsc 493 drivers/input/touchscreen/imx6ul_tsc.c err = input_register_device(tsc->input); tsc 500 drivers/input/touchscreen/imx6ul_tsc.c platform_set_drvdata(pdev, tsc); tsc 507 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); tsc 508 drivers/input/touchscreen/imx6ul_tsc.c struct input_dev *input_dev = tsc->input; tsc 513 drivers/input/touchscreen/imx6ul_tsc.c imx6ul_tsc_disable(tsc); tsc 515 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->tsc_clk); tsc 516 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->adc_clk); tsc 527 drivers/input/touchscreen/imx6ul_tsc.c struct imx6ul_tsc *tsc = platform_get_drvdata(pdev); tsc 528 drivers/input/touchscreen/imx6ul_tsc.c struct input_dev *input_dev = tsc->input; tsc 534 drivers/input/touchscreen/imx6ul_tsc.c retval = clk_prepare_enable(tsc->adc_clk); tsc 538 drivers/input/touchscreen/imx6ul_tsc.c retval = clk_prepare_enable(tsc->tsc_clk); tsc 540 drivers/input/touchscreen/imx6ul_tsc.c clk_disable_unprepare(tsc->adc_clk); tsc 544 drivers/input/touchscreen/imx6ul_tsc.c retval = imx6ul_tsc_init(tsc); tsc 71 drivers/input/touchscreen/lpc32xx_ts.c static void lpc32xx_fifo_clear(struct lpc32xx_tsc *tsc) tsc 73 drivers/input/touchscreen/lpc32xx_ts.c while (!(tsc_readl(tsc, LPC32XX_TSC_STAT) & tsc 75 drivers/input/touchscreen/lpc32xx_ts.c tsc_readl(tsc, LPC32XX_TSC_FIFO); tsc 82 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = dev_id; tsc 83 drivers/input/touchscreen/lpc32xx_ts.c struct input_dev *input = tsc->dev; tsc 85 drivers/input/touchscreen/lpc32xx_ts.c tmp = tsc_readl(tsc, LPC32XX_TSC_STAT); tsc 89 drivers/input/touchscreen/lpc32xx_ts.c lpc32xx_fifo_clear(tsc); tsc 100 drivers/input/touchscreen/lpc32xx_ts.c !(tsc_readl(tsc, LPC32XX_TSC_STAT) & tsc 102 drivers/input/touchscreen/lpc32xx_ts.c tmp = tsc_readl(tsc, LPC32XX_TSC_FIFO); tsc 126 drivers/input/touchscreen/lpc32xx_ts.c static void lpc32xx_stop_tsc(struct lpc32xx_tsc *tsc) tsc 129 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_CON, tsc 130 drivers/input/touchscreen/lpc32xx_ts.c tsc_readl(tsc, LPC32XX_TSC_CON) & tsc 133 drivers/input/touchscreen/lpc32xx_ts.c clk_disable_unprepare(tsc->clk); tsc 136 drivers/input/touchscreen/lpc32xx_ts.c static int lpc32xx_setup_tsc(struct lpc32xx_tsc *tsc) tsc 141 drivers/input/touchscreen/lpc32xx_ts.c err = clk_prepare_enable(tsc->clk); tsc 145 drivers/input/touchscreen/lpc32xx_ts.c tmp = tsc_readl(tsc, LPC32XX_TSC_CON) & ~LPC32XX_TSC_ADCCON_POWER_UP; tsc 151 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_CON, tmp); tsc 154 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_SEL, LPC32XX_TSC_SEL_DEFVAL); tsc 155 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_MIN_X, LPC32XX_TSC_MIN_XY_VAL); tsc 156 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_MAX_X, LPC32XX_TSC_MAX_XY_VAL); tsc 157 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_MIN_Y, LPC32XX_TSC_MIN_XY_VAL); tsc 158 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_MAX_Y, LPC32XX_TSC_MAX_XY_VAL); tsc 161 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_AUX_UTR, 0); tsc 162 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_AUX_MIN, 0); tsc 163 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_AUX_MAX, 0); tsc 171 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_RTR, 0x2); tsc 172 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_DTR, 0x2); tsc 173 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_TTR, 0x10); tsc 174 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_DXP, 0x4); tsc 175 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_UTR, 88); tsc 177 drivers/input/touchscreen/lpc32xx_ts.c lpc32xx_fifo_clear(tsc); tsc 180 drivers/input/touchscreen/lpc32xx_ts.c tsc_writel(tsc, LPC32XX_TSC_CON, tmp | LPC32XX_TSC_ADCCON_AUTO_EN); tsc 187 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = input_get_drvdata(dev); tsc 189 drivers/input/touchscreen/lpc32xx_ts.c return lpc32xx_setup_tsc(tsc); tsc 194 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = input_get_drvdata(dev); tsc 196 drivers/input/touchscreen/lpc32xx_ts.c lpc32xx_stop_tsc(tsc); tsc 201 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc; tsc 218 drivers/input/touchscreen/lpc32xx_ts.c tsc = kzalloc(sizeof(*tsc), GFP_KERNEL); tsc 220 drivers/input/touchscreen/lpc32xx_ts.c if (!tsc || !input) { tsc 226 drivers/input/touchscreen/lpc32xx_ts.c tsc->dev = input; tsc 227 drivers/input/touchscreen/lpc32xx_ts.c tsc->irq = irq; tsc 237 drivers/input/touchscreen/lpc32xx_ts.c tsc->tsc_base = ioremap(res->start, size); tsc 238 drivers/input/touchscreen/lpc32xx_ts.c if (!tsc->tsc_base) { tsc 244 drivers/input/touchscreen/lpc32xx_ts.c tsc->clk = clk_get(&pdev->dev, NULL); tsc 245 drivers/input/touchscreen/lpc32xx_ts.c if (IS_ERR(tsc->clk)) { tsc 247 drivers/input/touchscreen/lpc32xx_ts.c error = PTR_ERR(tsc->clk); tsc 268 drivers/input/touchscreen/lpc32xx_ts.c input_set_drvdata(input, tsc); tsc 270 drivers/input/touchscreen/lpc32xx_ts.c error = request_irq(tsc->irq, lpc32xx_ts_interrupt, tsc 271 drivers/input/touchscreen/lpc32xx_ts.c 0, pdev->name, tsc); tsc 283 drivers/input/touchscreen/lpc32xx_ts.c platform_set_drvdata(pdev, tsc); tsc 289 drivers/input/touchscreen/lpc32xx_ts.c free_irq(tsc->irq, tsc); tsc 291 drivers/input/touchscreen/lpc32xx_ts.c clk_put(tsc->clk); tsc 293 drivers/input/touchscreen/lpc32xx_ts.c iounmap(tsc->tsc_base); tsc 298 drivers/input/touchscreen/lpc32xx_ts.c kfree(tsc); tsc 305 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = platform_get_drvdata(pdev); tsc 308 drivers/input/touchscreen/lpc32xx_ts.c free_irq(tsc->irq, tsc); tsc 310 drivers/input/touchscreen/lpc32xx_ts.c input_unregister_device(tsc->dev); tsc 312 drivers/input/touchscreen/lpc32xx_ts.c clk_put(tsc->clk); tsc 314 drivers/input/touchscreen/lpc32xx_ts.c iounmap(tsc->tsc_base); tsc 318 drivers/input/touchscreen/lpc32xx_ts.c kfree(tsc); tsc 326 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); tsc 327 drivers/input/touchscreen/lpc32xx_ts.c struct input_dev *input = tsc->dev; tsc 339 drivers/input/touchscreen/lpc32xx_ts.c enable_irq_wake(tsc->irq); tsc 341 drivers/input/touchscreen/lpc32xx_ts.c lpc32xx_stop_tsc(tsc); tsc 351 drivers/input/touchscreen/lpc32xx_ts.c struct lpc32xx_tsc *tsc = dev_get_drvdata(dev); tsc 352 drivers/input/touchscreen/lpc32xx_ts.c struct input_dev *input = tsc->dev; tsc 358 drivers/input/touchscreen/lpc32xx_ts.c disable_irq_wake(tsc->irq); tsc 360 drivers/input/touchscreen/lpc32xx_ts.c lpc32xx_setup_tsc(tsc); tsc 68 drivers/input/touchscreen/ti_am335x_tsc.c static void titsc_writel(struct titsc *tsc, unsigned int reg, tsc 71 drivers/input/touchscreen/ti_am335x_tsc.c writel(val, tsc->mfd_tscadc->tscadc_base + reg); tsc 423 drivers/input/touchscreen/ti_am335x_tsc.c tscadc_dev->tsc = ts_dev; tsc 51 drivers/input/touchscreen/tps6507x-ts.c static int tps6507x_read_u8(struct tps6507x_ts *tsc, u8 reg, u8 *data) tsc 53 drivers/input/touchscreen/tps6507x-ts.c return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); tsc 56 drivers/input/touchscreen/tps6507x-ts.c static int tps6507x_write_u8(struct tps6507x_ts *tsc, u8 reg, u8 data) tsc 58 drivers/input/touchscreen/tps6507x-ts.c return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); tsc 61 drivers/input/touchscreen/tps6507x-ts.c static s32 tps6507x_adc_conversion(struct tps6507x_ts *tsc, tsc 70 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc_mode); tsc 72 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "TSC mode read failed\n"); tsc 78 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, tsc 81 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "ADC config write failed\n"); tsc 86 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADCONFIG, tsc 89 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "ADC config read failed\n"); tsc 94 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADRESULT_2, &result); tsc 96 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "ADC result 2 read failed\n"); tsc 102 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADRESULT_1, &result); tsc 104 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "ADC result 1 read failed\n"); tsc 110 drivers/input/touchscreen/tps6507x-ts.c dev_dbg(tsc->dev, "TSC channel %d = 0x%X\n", tsc_mode, *value); tsc 120 drivers/input/touchscreen/tps6507x-ts.c static s32 tps6507x_adc_standby(struct tps6507x_ts *tsc) tsc 126 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, tsc 131 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc 136 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_read_u8(tsc, TPS6507X_REG_INT, &val); tsc 142 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_read_u8(tsc, TPS6507X_REG_INT, &val); tsc 153 drivers/input/touchscreen/tps6507x-ts.c struct tps6507x_ts *tsc = poll_dev->private; tsc 158 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_adc_conversion(tsc, TPS6507X_TSCMODE_PRESSURE, tsc 159 drivers/input/touchscreen/tps6507x-ts.c &tsc->tc.pressure); tsc 163 drivers/input/touchscreen/tps6507x-ts.c pendown = tsc->tc.pressure > tsc->min_pressure; tsc 165 drivers/input/touchscreen/tps6507x-ts.c if (unlikely(!pendown && tsc->pendown)) { tsc 166 drivers/input/touchscreen/tps6507x-ts.c dev_dbg(tsc->dev, "UP\n"); tsc 170 drivers/input/touchscreen/tps6507x-ts.c tsc->pendown = false; tsc 175 drivers/input/touchscreen/tps6507x-ts.c if (!tsc->pendown) { tsc 176 drivers/input/touchscreen/tps6507x-ts.c dev_dbg(tsc->dev, "DOWN\n"); tsc 179 drivers/input/touchscreen/tps6507x-ts.c dev_dbg(tsc->dev, "still down\n"); tsc 181 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_adc_conversion(tsc, TPS6507X_TSCMODE_X_POSITION, tsc 182 drivers/input/touchscreen/tps6507x-ts.c &tsc->tc.x); tsc 186 drivers/input/touchscreen/tps6507x-ts.c ret = tps6507x_adc_conversion(tsc, TPS6507X_TSCMODE_Y_POSITION, tsc 187 drivers/input/touchscreen/tps6507x-ts.c &tsc->tc.y); tsc 191 drivers/input/touchscreen/tps6507x-ts.c input_report_abs(input_dev, ABS_X, tsc->tc.x); tsc 192 drivers/input/touchscreen/tps6507x-ts.c input_report_abs(input_dev, ABS_Y, tsc->tc.y); tsc 193 drivers/input/touchscreen/tps6507x-ts.c input_report_abs(input_dev, ABS_PRESSURE, tsc->tc.pressure); tsc 195 drivers/input/touchscreen/tps6507x-ts.c tsc->pendown = true; tsc 199 drivers/input/touchscreen/tps6507x-ts.c tps6507x_adc_standby(tsc); tsc 207 drivers/input/touchscreen/tps6507x-ts.c struct tps6507x_ts *tsc; tsc 229 drivers/input/touchscreen/tps6507x-ts.c tsc = devm_kzalloc(&pdev->dev, sizeof(struct tps6507x_ts), GFP_KERNEL); tsc 230 drivers/input/touchscreen/tps6507x-ts.c if (!tsc) { tsc 235 drivers/input/touchscreen/tps6507x-ts.c tsc->mfd = tps6507x_dev; tsc 236 drivers/input/touchscreen/tps6507x-ts.c tsc->dev = tps6507x_dev->dev; tsc 237 drivers/input/touchscreen/tps6507x-ts.c tsc->min_pressure = init_data ? tsc 240 drivers/input/touchscreen/tps6507x-ts.c snprintf(tsc->phys, sizeof(tsc->phys), tsc 241 drivers/input/touchscreen/tps6507x-ts.c "%s/input0", dev_name(tsc->dev)); tsc 245 drivers/input/touchscreen/tps6507x-ts.c dev_err(tsc->dev, "Failed to allocate polled input device.\n"); tsc 249 drivers/input/touchscreen/tps6507x-ts.c tsc->poll_dev = poll_dev; tsc 251 drivers/input/touchscreen/tps6507x-ts.c poll_dev->private = tsc; tsc 265 drivers/input/touchscreen/tps6507x-ts.c input_dev->phys = tsc->phys; tsc 266 drivers/input/touchscreen/tps6507x-ts.c input_dev->dev.parent = tsc->dev; tsc 274 drivers/input/touchscreen/tps6507x-ts.c error = tps6507x_adc_standby(tsc); tsc 84 drivers/input/touchscreen/tsc2007.h int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd); tsc 85 drivers/input/touchscreen/tsc2007.h u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc); tsc 30 drivers/input/touchscreen/tsc2007_core.c int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) tsc 35 drivers/input/touchscreen/tsc2007_core.c data = i2c_smbus_read_word_data(tsc->client, cmd); tsc 37 drivers/input/touchscreen/tsc2007_core.c dev_err(&tsc->client->dev, "i2c io error: %d\n", data); tsc 47 drivers/input/touchscreen/tsc2007_core.c dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); tsc 52 drivers/input/touchscreen/tsc2007_core.c static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) tsc 55 drivers/input/touchscreen/tsc2007_core.c tc->y = tsc2007_xfer(tsc, READ_Y); tsc 58 drivers/input/touchscreen/tsc2007_core.c tc->x = tsc2007_xfer(tsc, READ_X); tsc 61 drivers/input/touchscreen/tsc2007_core.c tc->z1 = tsc2007_xfer(tsc, READ_Z1); tsc 62 drivers/input/touchscreen/tsc2007_core.c tc->z2 = tsc2007_xfer(tsc, READ_Z2); tsc 65 drivers/input/touchscreen/tsc2007_core.c tsc2007_xfer(tsc, PWRDOWN); tsc 68 drivers/input/touchscreen/tsc2007_core.c u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc) tsc 80 drivers/input/touchscreen/tsc2007_core.c rt *= tsc->x_plate_ohms; tsc 42 drivers/input/touchscreen/tsc2007_iio.c struct tsc2007 *tsc = iio->ts; tsc 52 drivers/input/touchscreen/tsc2007_iio.c mutex_lock(&tsc->mlock); tsc 56 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, READ_X); tsc 59 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, READ_Y); tsc 62 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, READ_Z1); tsc 65 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, READ_Z2); tsc 68 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, (ADC_ON_12BIT | TSC2007_MEASURE_AUX)); tsc 73 drivers/input/touchscreen/tsc2007_iio.c tc.x = tsc2007_xfer(tsc, READ_X); tsc 74 drivers/input/touchscreen/tsc2007_iio.c tc.z1 = tsc2007_xfer(tsc, READ_Z1); tsc 75 drivers/input/touchscreen/tsc2007_iio.c tc.z2 = tsc2007_xfer(tsc, READ_Z2); tsc 76 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_calculate_resistance(tsc, &tc); tsc 80 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_is_pen_down(tsc); tsc 83 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, tsc 87 drivers/input/touchscreen/tsc2007_iio.c *val = tsc2007_xfer(tsc, tsc 93 drivers/input/touchscreen/tsc2007_iio.c tsc2007_xfer(tsc, PWRDOWN); tsc 95 drivers/input/touchscreen/tsc2007_iio.c mutex_unlock(&tsc->mlock); tsc 273 drivers/net/fjes/fjes_hw.h u64 tsc; tsc 677 drivers/net/wireless/ath/ath6kl/main.c u8 tsc[6]; tsc 691 drivers/net/wireless/ath/ath6kl/main.c memset(tsc, 0, sizeof(tsc)); /* FIX: get correct TSC */ tsc 694 drivers/net/wireless/ath/ath6kl/main.c tsc, GFP_KERNEL); tsc 2957 drivers/net/wireless/ath/wcn36xx/hal.h u8 tsc[WCN36XX_HAL_CIPHER_SEQ_CTR_SIZE]; tsc 3807 drivers/net/wireless/intel/iwlwifi/dvm/commands.h struct tkip_sc tsc; tsc 3817 drivers/net/wireless/intel/iwlwifi/dvm/commands.h struct aes_sc tsc; tsc 914 drivers/net/wireless/intel/iwlwifi/dvm/lib.c tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; tsc 969 drivers/net/wireless/intel/iwlwifi/dvm/lib.c aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; tsc 428 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h struct tkip_sc tsc; tsc 438 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h struct aes_sc tsc; tsc 254 drivers/net/wireless/intel/iwlwifi/mvm/d3.c tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; tsc 311 drivers/net/wireless/intel/iwlwifi/mvm/d3.c aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; tsc 1400 drivers/net/wireless/intel/iwlwifi/mvm/d3.c atomic64_set(&key->tx_pn, le64_to_cpu(sc->aes.tsc.pn)); tsc 1403 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_mvm_tkip_sc_to_seq(&sc->tkip.tsc, &seq); tsc 690 drivers/net/wireless/intersil/orinoco/hw.c int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) tsc 702 drivers/net/wireless/intersil/orinoco/hw.c memcpy(tsc, &tsc_arr[key][0], sizeof(tsc_arr[0])); tsc 992 drivers/net/wireless/intersil/orinoco/hw.c size_t rsc_len, const u8 *tsc, size_t tsc_len) tsc 1000 drivers/net/wireless/intersil/orinoco/hw.c u8 tsc[ORINOCO_SEQ_LEN]; tsc 1020 drivers/net/wireless/intersil/orinoco/hw.c if (tsc_len > sizeof(buf.tsc)) tsc 1021 drivers/net/wireless/intersil/orinoco/hw.c tsc_len = sizeof(buf.tsc); tsc 1024 drivers/net/wireless/intersil/orinoco/hw.c memset(buf.tsc, 0, sizeof(buf.tsc)); tsc 1029 drivers/net/wireless/intersil/orinoco/hw.c if (tsc != NULL) tsc 1030 drivers/net/wireless/intersil/orinoco/hw.c memcpy(buf.tsc, tsc, tsc_len); tsc 1032 drivers/net/wireless/intersil/orinoco/hw.c buf.tsc[4] = 0x10; tsc 34 drivers/net/wireless/intersil/orinoco/hw.h int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc); tsc 42 drivers/net/wireless/intersil/orinoco/hw.h size_t rsc_len, const u8 *tsc, size_t tsc_len); tsc 1009 drivers/net/wireless/intersil/orinoco/main.c &wxmic.tsc[0]); tsc 70 drivers/ptp/ptp_kvm.c ret = __pvclock_read_cycles(src, clock_pair.tsc); tsc 93 drivers/thermal/rcar_gen3_thermal.c void (*thermal_init)(struct rcar_gen3_thermal_tsc *tsc); tsc 96 drivers/thermal/rcar_gen3_thermal.c static inline u32 rcar_gen3_thermal_read(struct rcar_gen3_thermal_tsc *tsc, tsc 99 drivers/thermal/rcar_gen3_thermal.c return ioread32(tsc->base + reg); tsc 102 drivers/thermal/rcar_gen3_thermal.c static inline void rcar_gen3_thermal_write(struct rcar_gen3_thermal_tsc *tsc, tsc 105 drivers/thermal/rcar_gen3_thermal.c iowrite32(data, tsc->base + reg); tsc 136 drivers/thermal/rcar_gen3_thermal.c static void rcar_gen3_thermal_calc_coefs(struct rcar_gen3_thermal_tsc *tsc, tsc 146 drivers/thermal/rcar_gen3_thermal.c tsc->tj_t = (FIXPT_INT((ptat[1] - ptat[2]) * 157) tsc 149 drivers/thermal/rcar_gen3_thermal.c tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[2]), tsc 150 drivers/thermal/rcar_gen3_thermal.c tsc->tj_t - FIXPT_INT(TJ_3)); tsc 151 drivers/thermal/rcar_gen3_thermal.c tsc->coef.b1 = FIXPT_INT(thcode[2]) - tsc->coef.a1 * TJ_3; tsc 153 drivers/thermal/rcar_gen3_thermal.c tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(thcode[1] - thcode[0]), tsc 154 drivers/thermal/rcar_gen3_thermal.c tsc->tj_t - FIXPT_INT(ths_tj_1)); tsc 155 drivers/thermal/rcar_gen3_thermal.c tsc->coef.b2 = FIXPT_INT(thcode[0]) - tsc->coef.a2 * ths_tj_1; tsc 170 drivers/thermal/rcar_gen3_thermal.c struct rcar_gen3_thermal_tsc *tsc = devdata; tsc 175 drivers/thermal/rcar_gen3_thermal.c reg = rcar_gen3_thermal_read(tsc, REG_GEN3_TEMP) & CTEMP_MASK; tsc 177 drivers/thermal/rcar_gen3_thermal.c if (reg <= thcode[tsc->id][1]) tsc 178 drivers/thermal/rcar_gen3_thermal.c val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b1, tsc 179 drivers/thermal/rcar_gen3_thermal.c tsc->coef.a1); tsc 181 drivers/thermal/rcar_gen3_thermal.c val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b2, tsc 182 drivers/thermal/rcar_gen3_thermal.c tsc->coef.a2); tsc 195 drivers/thermal/rcar_gen3_thermal.c static int rcar_gen3_thermal_mcelsius_to_temp(struct rcar_gen3_thermal_tsc *tsc, tsc 201 drivers/thermal/rcar_gen3_thermal.c if (celsius <= INT_FIXPT(tsc->tj_t)) tsc 202 drivers/thermal/rcar_gen3_thermal.c val = celsius * tsc->coef.a1 + tsc->coef.b1; tsc 204 drivers/thermal/rcar_gen3_thermal.c val = celsius * tsc->coef.a2 + tsc->coef.b2; tsc 211 drivers/thermal/rcar_gen3_thermal.c struct rcar_gen3_thermal_tsc *tsc = devdata; tsc 216 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQTEMP1, tsc 217 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_mcelsius_to_temp(tsc, low)); tsc 219 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQTEMP2, tsc 220 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_mcelsius_to_temp(tsc, high)); tsc 222 drivers/thermal/rcar_gen3_thermal.c tsc->low = low; tsc 223 drivers/thermal/rcar_gen3_thermal.c tsc->high = high; tsc 264 drivers/thermal/rcar_gen3_thermal.c static void rcar_gen3_thermal_init_r8a7795es1(struct rcar_gen3_thermal_tsc *tsc) tsc 266 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_CTSR, CTSR_THBGR); tsc 267 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_CTSR, 0x0); tsc 271 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_CTSR, CTSR_PONM); tsc 273 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQCTL, 0x3F); tsc 274 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQMSK, 0); tsc 275 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQEN, IRQ_TEMPD1 | IRQ_TEMP2); tsc 277 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_CTSR, tsc 282 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_CTSR, tsc 289 drivers/thermal/rcar_gen3_thermal.c static void rcar_gen3_thermal_init(struct rcar_gen3_thermal_tsc *tsc) tsc 293 drivers/thermal/rcar_gen3_thermal.c reg_val = rcar_gen3_thermal_read(tsc, REG_GEN3_THCTR); tsc 295 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_THCTR, reg_val); tsc 299 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQCTL, 0); tsc 300 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQMSK, 0); tsc 301 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_IRQEN, IRQ_TEMPD1 | IRQ_TEMP2); tsc 303 drivers/thermal/rcar_gen3_thermal.c reg_val = rcar_gen3_thermal_read(tsc, REG_GEN3_THCTR); tsc 305 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_write(tsc, REG_GEN3_THCTR, reg_val); tsc 407 drivers/thermal/rcar_gen3_thermal.c struct rcar_gen3_thermal_tsc *tsc; tsc 413 drivers/thermal/rcar_gen3_thermal.c tsc = devm_kzalloc(dev, sizeof(*tsc), GFP_KERNEL); tsc 414 drivers/thermal/rcar_gen3_thermal.c if (!tsc) { tsc 419 drivers/thermal/rcar_gen3_thermal.c tsc->base = devm_ioremap_resource(dev, res); tsc 420 drivers/thermal/rcar_gen3_thermal.c if (IS_ERR(tsc->base)) { tsc 421 drivers/thermal/rcar_gen3_thermal.c ret = PTR_ERR(tsc->base); tsc 424 drivers/thermal/rcar_gen3_thermal.c tsc->id = i; tsc 426 drivers/thermal/rcar_gen3_thermal.c priv->tscs[i] = tsc; tsc 428 drivers/thermal/rcar_gen3_thermal.c priv->thermal_init(tsc); tsc 429 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_calc_coefs(tsc, ptat, thcode[i], tsc 432 drivers/thermal/rcar_gen3_thermal.c zone = devm_thermal_zone_of_sensor_register(dev, i, tsc, tsc 439 drivers/thermal/rcar_gen3_thermal.c tsc->zone = zone; tsc 441 drivers/thermal/rcar_gen3_thermal.c tsc->zone->tzp->no_hwmon = false; tsc 442 drivers/thermal/rcar_gen3_thermal.c ret = thermal_add_hwmon_sysfs(tsc->zone); tsc 451 drivers/thermal/rcar_gen3_thermal.c ret = of_thermal_get_ntrips(tsc->zone); tsc 490 drivers/thermal/rcar_gen3_thermal.c struct rcar_gen3_thermal_tsc *tsc = priv->tscs[i]; tsc 492 drivers/thermal/rcar_gen3_thermal.c priv->thermal_init(tsc); tsc 493 drivers/thermal/rcar_gen3_thermal.c rcar_gen3_thermal_set_trips(tsc, tsc->low, tsc->high); tsc 273 drivers/xen/mcelog.c m.tsc = mc_bank->mc_tsc; tsc 184 include/linux/mfd/ti_am335x_tscadc.h struct titsc *tsc; tsc 6015 include/net/cfg80211.h const u8 *tsc, gfp_t gfp); tsc 27 include/trace/events/mce.h __field( u64, tsc ) tsc 47 include/trace/events/mce.h __entry->tsc = m->tsc; tsc 65 include/trace/events/mce.h __entry->tsc, tsc 73 include/trace/events/power.h u64 tsc, tsc 84 include/trace/events/power.h tsc, tsc 96 include/trace/events/power.h __field(u64, tsc) tsc 108 include/trace/events/power.h __entry->tsc = tsc; tsc 120 include/trace/events/power.h (unsigned long long)__entry->tsc, tsc 859 include/uapi/linux/wireless.h __u8 tsc[IW_ENCODE_SEQ_MAX_SIZE]; /* LSB first */ tsc 342 include/xen/interface/xen-mca.h __u64 tsc; /* cpu time stamp counter */ tsc 1256 net/sched/sch_hfsc.c struct tc_service_curve tsc; tsc 1258 net/sched/sch_hfsc.c tsc.m1 = sm2m(sc->sm1); tsc 1259 net/sched/sch_hfsc.c tsc.d = dx2d(sc->dx); tsc 1260 net/sched/sch_hfsc.c tsc.m2 = sm2m(sc->sm2); tsc 1261 net/sched/sch_hfsc.c if (nla_put(skb, attr, sizeof(tsc), &tsc)) tsc 195 net/wireless/mlme.c const u8 *tsc, gfp_t gfp) tsc 215 net/wireless/mlme.c trace_cfg80211_michael_mic_failure(dev, addr, key_type, key_id, tsc); tsc 216 net/wireless/mlme.c nl80211_michael_mic_failure(rdev, dev, addr, key_type, key_id, tsc, gfp); tsc 15478 net/wireless/nl80211.c const u8 *tsc, gfp_t gfp) tsc 15499 net/wireless/nl80211.c (tsc && nla_put(msg, NL80211_ATTR_KEY_SEQ, 6, tsc))) tsc 101 net/wireless/nl80211.h int key_id, const u8 *tsc, gfp_t gfp); tsc 2699 net/wireless/trace.h enum nl80211_key_type key_type, int key_id, const u8 *tsc), tsc 2700 net/wireless/trace.h TP_ARGS(netdev, addr, key_type, key_id, tsc), tsc 2706 net/wireless/trace.h __array(u8, tsc, 6) tsc 2713 net/wireless/trace.h if (tsc) tsc 2714 net/wireless/trace.h memcpy(__entry->tsc, tsc, 6); tsc 2718 net/wireless/trace.h __entry->key_id, __entry->tsc) tsc 2750 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c static bool intel_pt_next_tsc(unsigned char *buf, size_t len, uint64_t *tsc, tsc 2762 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c *tsc = packet.payload; tsc 2986 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint64_t tsc; tsc 2994 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c !intel_pt_next_tsc(buf, len, &tsc, &rem)) tsc 2997 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c tsc = intel_pt_8b_tsc(tsc, buffer->ref_timestamp); tsc 3000 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c tsc, buffer->ref_timestamp); tsc 3006 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (tsc < d->timestamp) tsc 3063 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint64_t tsc; tsc 3066 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (!intel_pt_next_tsc(buf, len, &tsc, &rem)) tsc 3068 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c tsc = intel_pt_8b_tsc(tsc, decoder->buf_timestamp); tsc 3075 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c if (tsc < timestamp) { tsc 3076 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c intel_pt_log("Fast forward to next PSB timestamp " x64_fmt "\n", tsc); tsc 2953 tools/perf/util/intel-pt.c u64 tsc, tm; tsc 2955 tools/perf/util/intel-pt.c tsc = perf_time_to_tsc(ns, &pt->tc); tsc 2958 tools/perf/util/intel-pt.c tm = tsc_to_perf_time(tsc, &pt->tc); tsc 2961 tools/perf/util/intel-pt.c tsc -= 1; tsc 2965 tools/perf/util/intel-pt.c tm = tsc_to_perf_time(++tsc, &pt->tc); tsc 2967 tools/perf/util/intel-pt.c return tsc; tsc 2973 tools/perf/util/intel-pt.c u64 tsc, tm; tsc 2975 tools/perf/util/intel-pt.c tsc = perf_time_to_tsc(ns, &pt->tc); tsc 2978 tools/perf/util/intel-pt.c tm = tsc_to_perf_time(tsc, &pt->tc); tsc 2981 tools/perf/util/intel-pt.c tsc += 1; tsc 2985 tools/perf/util/intel-pt.c tm = tsc_to_perf_time(--tsc, &pt->tc); tsc 2987 tools/perf/util/intel-pt.c return tsc; tsc 79 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c static int mperf_get_tsc(unsigned long long *tsc) tsc 83 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c ret = read_msr(base_cpu, MSR_TSC, tsc); tsc 85 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c dprint("Reading TSC MSR failed, returning %llu\n", *tsc); tsc 171 tools/power/x86/turbostat/turbostat.c unsigned long long tsc; tsc 810 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "TSC: %016llX\n", t->tsc); tsc 888 tools/power/x86/turbostat/turbostat.c double interval_float, tsc; tsc 922 tools/power/x86/turbostat/turbostat.c tsc = t->tsc * tsc_tweak; tsc 981 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->mperf/tsc); tsc 988 tools/power/x86/turbostat/turbostat.c tsc / units * t->aperf / t->mperf / interval_float); tsc 992 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), 1.0 * t->tsc/units/interval_float); tsc 1022 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->counter[i]/tsc); tsc 1028 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->c1/tsc); tsc 1036 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->c3/tsc); tsc 1038 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->c6/tsc); tsc 1040 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->c7/tsc); tsc 1044 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->mc6_us / tsc); tsc 1061 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * c->counter[i]/tsc); tsc 1103 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pkg_wtd_core_c0/tsc); tsc 1105 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pkg_any_core_c0/tsc); tsc 1107 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pkg_any_gfxe_c0/tsc); tsc 1109 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pkg_both_core_gfxe_c0/tsc); tsc 1112 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc2/tsc); tsc 1114 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc3/tsc); tsc 1116 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc6/tsc); tsc 1118 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc7/tsc); tsc 1120 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc8/tsc); tsc 1122 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc9/tsc); tsc 1124 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->pc10/tsc); tsc 1164 tools/power/x86/turbostat/turbostat.c outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * p->counter[i]/tsc); tsc 1330 tools/power/x86/turbostat/turbostat.c old->tsc = new->tsc - old->tsc; tsc 1333 tools/power/x86/turbostat/turbostat.c if (old->tsc < (1000 * 1000)) tsc 1362 tools/power/x86/turbostat/turbostat.c if ((old->mperf + core_delta->c3 + core_delta->c6 + core_delta->c7) > (old->tsc * tsc_tweak)) tsc 1366 tools/power/x86/turbostat/turbostat.c old->c1 = (old->tsc * tsc_tweak) - old->mperf - core_delta->c3 tsc 1426 tools/power/x86/turbostat/turbostat.c t->tsc = 0; tsc 1500 tools/power/x86/turbostat/turbostat.c average.threads.tsc += t->tsc; tsc 1597 tools/power/x86/turbostat/turbostat.c average.threads.tsc /= topo.num_cpus; tsc 1796 tools/power/x86/turbostat/turbostat.c t->tsc = rdtsc(); /* we are running on local CPU of interest */ tsc 1820 tools/power/x86/turbostat/turbostat.c t->tsc = rdtsc(); /* re-read close to APERF */ tsc 1822 tools/power/x86/turbostat/turbostat.c tsc_before = t->tsc; tsc 22 tools/testing/selftests/intel_pstate/aperf.c long long tsc, old_tsc, new_tsc; tsc 72 tools/testing/selftests/intel_pstate/aperf.c tsc = new_tsc-old_tsc; tsc 81 tools/testing/selftests/intel_pstate/aperf.c printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total);