Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/input/touchscreen/
Dlpc32xx_ts.c80 static void lpc32xx_fifo_clear(struct lpc32xx_tsc *tsc) in lpc32xx_fifo_clear() argument
82 while (!(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_fifo_clear()
84 tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_fifo_clear()
91 struct lpc32xx_tsc *tsc = dev_id; in lpc32xx_ts_interrupt() local
92 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt()
94 tmp = tsc_readl(tsc, LPC32XX_TSC_STAT); in lpc32xx_ts_interrupt()
98 lpc32xx_fifo_clear(tsc); in lpc32xx_ts_interrupt()
109 !(tsc_readl(tsc, LPC32XX_TSC_STAT) & in lpc32xx_ts_interrupt()
111 tmp = tsc_readl(tsc, LPC32XX_TSC_FIFO); in lpc32xx_ts_interrupt()
135 static void lpc32xx_stop_tsc(struct lpc32xx_tsc *tsc) in lpc32xx_stop_tsc() argument
[all …]
Dtps6507x-ts.c51 static int tps6507x_read_u8(struct tps6507x_ts *tsc, u8 reg, u8 *data) in tps6507x_read_u8() argument
55 err = tsc->mfd->read_dev(tsc->mfd, reg, 1, data); in tps6507x_read_u8()
63 static int tps6507x_write_u8(struct tps6507x_ts *tsc, u8 reg, u8 data) in tps6507x_write_u8() argument
65 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); in tps6507x_write_u8()
68 static s32 tps6507x_adc_conversion(struct tps6507x_ts *tsc, in tps6507x_adc_conversion() argument
77 ret = tps6507x_write_u8(tsc, TPS6507X_REG_TSCMODE, tsc_mode); in tps6507x_adc_conversion()
79 dev_err(tsc->dev, "TSC mode read failed\n"); in tps6507x_adc_conversion()
85 ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion()
88 dev_err(tsc->dev, "ADC config write failed\n"); in tps6507x_adc_conversion()
93 ret = tps6507x_read_u8(tsc, TPS6507X_REG_ADCONFIG, in tps6507x_adc_conversion()
[all …]
Dtsc2007.c93 static inline int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd) in tsc2007_xfer() argument
98 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer()
100 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer()
110 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer()
115 static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc) in tsc2007_read_values() argument
118 tc->y = tsc2007_xfer(tsc, READ_Y); in tsc2007_read_values()
121 tc->x = tsc2007_xfer(tsc, READ_X); in tsc2007_read_values()
124 tc->z1 = tsc2007_xfer(tsc, READ_Z1); in tsc2007_read_values()
125 tc->z2 = tsc2007_xfer(tsc, READ_Z2); in tsc2007_read_values()
128 tsc2007_xfer(tsc, PWRDOWN); in tsc2007_read_values()
[all …]
Dcy8ctmg110_ts.c74 static int cy8ctmg110_write_regs(struct cy8ctmg110 *tsc, unsigned char reg, in cy8ctmg110_write_regs() argument
77 struct i2c_client *client = tsc->client; in cy8ctmg110_write_regs()
95 static int cy8ctmg110_read_regs(struct cy8ctmg110 *tsc, in cy8ctmg110_read_regs() argument
98 struct i2c_client *client = tsc->client; in cy8ctmg110_read_regs()
123 static int cy8ctmg110_touch_pos(struct cy8ctmg110 *tsc) in cy8ctmg110_touch_pos() argument
125 struct input_dev *input = tsc->input; in cy8ctmg110_touch_pos()
132 if (cy8ctmg110_read_regs(tsc, reg_p, 9, CY8CTMG110_TOUCH_X1) != 0) in cy8ctmg110_touch_pos()
171 struct cy8ctmg110 *tsc = dev_id; in cy8ctmg110_irq_thread() local
173 cy8ctmg110_touch_pos(tsc); in cy8ctmg110_irq_thread()
Dti_am335x_tsc.c64 static void titsc_writel(struct titsc *tsc, unsigned int reg, in titsc_writel() argument
67 writel(val, tsc->mfd_tscadc->tscadc_base + reg); in titsc_writel()
419 tscadc_dev->tsc = ts_dev; in titsc_probe()
/linux-4.1.27/Documentation/prctl/
DMakefile2 hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-t…
6 HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include
7 HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include
8 HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include
D.gitignore1 disable-tsc-ctxt-sw-stress-test
2 disable-tsc-on-off-stress-test
3 disable-tsc-test
/linux-4.1.27/arch/x86/include/asm/
Dstackprotector.h61 u64 tsc; in boot_init_stack_canary() local
73 tsc = __native_read_tsc(); in boot_init_stack_canary()
74 canary += tsc + (tsc << 32UL); in boot_init_stack_canary()
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dlpc32xx-tsc.txt4 - compatible: must be "nxp,lpc3220-tsc"
11 tsc@40048000 {
12 compatible = "nxp,lpc3220-tsc";
Dbrcm,iproc-touchscreen.txt7 - clocks: The clock provided by the SOC to driver the tsc
15 the tsc waits to allow the voltage to settle after
58 touchscreen: tsc@0x180A6000 {
Dti-tsc-adc.txt5 - child "tsc"
32 - child "tsc"
48 tsc {
/linux-4.1.27/include/trace/events/
Dmce.h24 __field( u64, tsc )
42 __entry->tsc = m->tsc;
59 __entry->tsc,
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
Dframework.c124 sfw_test_case_t *tsc; in sfw_find_test_case() local
129 list_for_each_entry(tsc, &sfw_data.fw_tests, tsc_list) { in sfw_find_test_case()
130 if (tsc->tsc_srv_service->sv_id == id) in sfw_find_test_case()
131 return tsc; in sfw_find_test_case()
140 sfw_test_case_t *tsc; in sfw_register_test() local
148 LIBCFS_ALLOC(tsc, sizeof(sfw_test_case_t)); in sfw_register_test()
149 if (tsc == NULL) in sfw_register_test()
152 tsc->tsc_cli_ops = cliops; in sfw_register_test()
153 tsc->tsc_srv_service = service; in sfw_register_test()
155 list_add_tail(&tsc->tsc_list, &sfw_data.fw_tests); in sfw_register_test()
[all …]
/linux-4.1.27/arch/x86/kernel/
Dtsc.c443 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
459 tsc = t1 = t2 = get_cycles(); in pit_calibrate_tsc()
466 delta = t2 - tsc; in pit_calibrate_tsc()
467 tsc = t2; in pit_calibrate_tsc()
538 u64 tsc = 0, prev_tsc = 0; in pit_expect_msb() local
543 prev_tsc = tsc; in pit_expect_msb()
544 tsc = get_cycles(); in pit_expect_msb()
547 *tscp = tsc; in pit_expect_msb()
568 u64 tsc, delta; in quick_pit_calibrate() local
597 if (pit_expect_msb(0xff, &tsc, &d1)) { in quick_pit_calibrate()
[all …]
DMakefile42 obj-y += tsc.o tsc_msr.o io_delay.o rtc.o
/linux-4.1.27/net/mac80211/
Devent.c19 struct ieee80211_hdr *hdr, const u8 *tsc, in mac80211_ev_michael_mic_failure() argument
26 keyidx, tsc, gfp); in mac80211_ev_michael_mic_failure()
Dieee80211_i.h1774 struct ieee80211_hdr *hdr, const u8 *tsc,
/linux-4.1.27/arch/c6x/kernel/
Dtime.c47 u64 tsc = get_cycles(); in sched_clock() local
49 return (tsc * sched_clock_multiplier) >> SCHED_CLOCK_SHIFT; in sched_clock()
/linux-4.1.27/tools/power/x86/turbostat/
Dturbostat.c135 unsigned long long tsc; member
395 outp += sprintf(outp, "TSC: %016llX\n", t->tsc); in dump_counters()
505 outp += sprintf(outp, "%8.2f", 100.0 * t->mperf/t->tsc); in format_counters()
513 1.0 * t->tsc / units * t->aperf / t->mperf / interval_float); in format_counters()
516 outp += sprintf(outp, "%8.0f", 1.0 * t->tsc/units/interval_float); in format_counters()
542 outp += sprintf(outp, "%8.2f", 100.0 * t->c1/t->tsc); in format_counters()
552 outp += sprintf(outp, "%8.2f", 100.0 * c->c3/t->tsc); in format_counters()
554 outp += sprintf(outp, "%8.2f", 100.0 * c->c6/t->tsc); in format_counters()
556 outp += sprintf(outp, "%8.2f", 100.0 * c->c7/t->tsc); in format_counters()
571 outp += sprintf(outp, "%8.2f", 100.0 * p->pkg_wtd_core_c0/t->tsc); in format_counters()
[all …]
/linux-4.1.27/drivers/net/wireless/orinoco/
Dhw.h34 int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc);
42 size_t rsc_len, const u8 *tsc, size_t tsc_len);
Dhw.c690 int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc) in orinoco_hw_get_tkip_iv() argument
702 memcpy(tsc, &tsc_arr[key][0], sizeof(tsc_arr[0])); in orinoco_hw_get_tkip_iv()
992 size_t rsc_len, const u8 *tsc, size_t tsc_len) in __orinoco_hw_set_tkip_key() argument
1000 u8 tsc[ORINOCO_SEQ_LEN]; in __orinoco_hw_set_tkip_key() member
1020 if (tsc_len > sizeof(buf.tsc)) in __orinoco_hw_set_tkip_key()
1021 tsc_len = sizeof(buf.tsc); in __orinoco_hw_set_tkip_key()
1024 memset(buf.tsc, 0, sizeof(buf.tsc)); in __orinoco_hw_set_tkip_key()
1029 if (tsc != NULL) in __orinoco_hw_set_tkip_key()
1030 memcpy(buf.tsc, tsc, tsc_len); in __orinoco_hw_set_tkip_key()
1032 buf.tsc[4] = 0x10; in __orinoco_hw_set_tkip_key()
Dmain.c1024 &wxmic.tsc[0]); in orinoco_rx()
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c80 static int mperf_get_tsc(unsigned long long *tsc) in mperf_get_tsc() argument
83 ret = read_msr(0, MSR_TSC, tsc); in mperf_get_tsc()
85 dprint("Reading TSC MSR failed, returning %llu\n", *tsc); in mperf_get_tsc()
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Dmax8925.txt13 - maxim,tsc-irq: there are 2 IRQ lines for max8925, one is indicated in
36 maxim,tsc-irq = <0>;
/linux-4.1.27/tools/perf/arch/x86/util/
DBuild2 libperf-y += tsc.o
/linux-4.1.27/arch/x86/kernel/apic/
Dapic.c465 u64 tsc; in lapic_next_deadline() local
467 rdtscll(tsc); in lapic_next_deadline()
468 wrmsrl(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR)); in lapic_next_deadline()
597 unsigned long long tsc = 0; in lapic_cal_handler() local
602 rdtscll(tsc); in lapic_cal_handler()
607 lapic_cal_tsc1 = tsc; in lapic_cal_handler()
614 lapic_cal_tsc2 = tsc; in lapic_cal_handler()
1215 unsigned long long tsc = 0, ntsc; in setup_local_APIC() local
1219 rdtscll(tsc); in setup_local_APIC()
1304 max_loops = (cpu_khz << 10) - (ntsc - tsc); in setup_local_APIC()
/linux-4.1.27/arch/x86/include/uapi/asm/
Dmce.h14 __u64 tsc; /* cpu time stamp counter */ member
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-d3.h268 struct tkip_sc tsc; member
278 struct aes_sc tsc; member
Dd3.c224 tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; in iwl_mvm_wowlan_program_keys()
280 aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; in iwl_mvm_wowlan_program_keys()
1447 iwl_mvm_aes_sc_to_seq(&sc->aes.tsc, &seq); in iwl_mvm_d3_update_gtks()
1451 iwl_mvm_tkip_sc_to_seq(&sc->tkip.tsc, &seq); in iwl_mvm_d3_update_gtks()
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dprima2-clock.txt31 tsc 16
/linux-4.1.27/Documentation/virtual/kvm/
Dmsr.txt79 tsc_timestamp: the tsc value at the current VCPU at the time
81 from current tsc to derive a notion of elapsed time since the
89 tsc-related quantity to nanoseconds
91 tsc_shift: shift to be used when converting tsc-related
97 The conversion from tsc to nanoseconds involves an additional
Dlocking.txt150 - tsc offset in vmcb
151 Comment: 'raw' because updating the tsc offsets must not be preempted.
Dapi.txt1509 Specifies the tsc frequency for the virtual machine. The unit of the
1519 Returns: virtual tsc-khz on success, negative value on error
1521 Returns the tsc frequency of the guest. The unit of the return value is
1522 KHz. If the host has unstable tsc this ioctl returns -EIO instead as an
/linux-4.1.27/tools/perf/tests/
DBuild35 perf-$(CONFIG_X86) += perf-time-to-tsc.o
/linux-4.1.27/arch/arm/boot/dts/
Dlpc32xx.dtsi278 tsc@40048000 {
279 compatible = "nxp,lpc3220-tsc";
Dimx25.dtsi268 tsc: tsc@50030000 { label
269 compatible = "fsl,imx25-adc", "fsl,imx21-tsc";
Dphy3250.dts174 tsc@40048000 {
Dmmp2-brownstone.dts39 maxim,tsc-irq = <0>;
Datlas6.dtsi356 tsc@b0110000 {
357 compatible = "sirf,prima2-tsc";
Dprima2.dtsi370 tsc@b0110000 {
371 compatible = "sirf,prima2-tsc";
Dam33xx.dtsi798 tsc {
799 compatible = "ti,am3359-tsc";
Dam4372.dtsi707 tsc {
708 compatible = "ti,am3359-tsc";
Dam335x-pepper.dts501 tsc {
Dam335x-evm.dts646 tsc {
Dam335x-evmsk.dts681 tsc {
/linux-4.1.27/arch/s390/include/asm/
Detr.h220 unsigned int tsc : 1; /* Timing status change */ member
/linux-4.1.27/net/wireless/
Dnl80211.h71 int key_id, const u8 *tsc, gfp_t gfp);
Dmlme.c172 const u8 *tsc, gfp_t gfp) in cfg80211_michael_mic_failure() argument
192 trace_cfg80211_michael_mic_failure(dev, addr, key_type, key_id, tsc); in cfg80211_michael_mic_failure()
193 nl80211_michael_mic_failure(rdev, dev, addr, key_type, key_id, tsc, gfp); in cfg80211_michael_mic_failure()
Dtrace.h2224 enum nl80211_key_type key_type, int key_id, const u8 *tsc),
2225 TP_ARGS(netdev, addr, key_type, key_id, tsc),
2231 __array(u8, tsc, 6)
2238 if (tsc)
2239 memcpy(__entry->tsc, tsc, 6);
2243 __entry->key_id, __entry->tsc)
Dnl80211.c11674 const u8 *tsc, gfp_t gfp) in nl80211_michael_mic_failure() argument
11695 (tsc && nla_put(msg, NL80211_ATTR_KEY_SEQ, 6, tsc))) in nl80211_michael_mic_failure()
/linux-4.1.27/include/linux/mfd/
Dti_am335x_tscadc.h172 struct titsc *tsc; member
/linux-4.1.27/drivers/clk/sirf/
Dclk-prima2.c63 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
Dclk-atlas6.c64 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dbrcm,cygnus-gpio.txt86 tsc {
/linux-4.1.27/net/sched/
Dsch_hfsc.c1306 struct tc_service_curve tsc; in hfsc_dump_sc() local
1308 tsc.m1 = sm2m(sc->sm1); in hfsc_dump_sc()
1309 tsc.d = dx2d(sc->dx); in hfsc_dump_sc()
1310 tsc.m2 = sm2m(sc->sm2); in hfsc_dump_sc()
1311 if (nla_put(skb, attr, sizeof(tsc), &tsc)) in hfsc_dump_sc()
/linux-4.1.27/include/xen/interface/
Dxen-mca.h342 __u64 tsc; /* cpu time stamp counter */ member
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
Dmce.c125 rdtscll(m->tsc); in mce_setup()
264 pr_emerg(HW_ERR "TSC %llx ", m->tsc); in print_mce()
641 m.tsc = 0; in machine_check_poll()
662 m.tsc = 0; in machine_check_poll()
1869 if (m->finished && m->tsc < cpu_tsc[m->cpu]) { in mce_chrdev_read()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dmain.c674 u8 tsc[6]; in ath6kl_tkip_micerr_event() local
688 memset(tsc, 0, sizeof(tsc)); /* FIX: get correct TSC */ in ath6kl_tkip_micerr_event()
691 tsc, GFP_KERNEL); in ath6kl_tkip_micerr_event()
/linux-4.1.27/drivers/xen/
Dmcelog.c273 m.tsc = mc_bank->mc_tsc; in convert_log()
/linux-4.1.27/arch/x86/kvm/
Dsvm.c212 static u64 __scale_tsc(u64 ratio, u64 tsc);
969 static u64 __scale_tsc(u64 ratio, u64 tsc) in __scale_tsc() argument
976 _tsc = tsc; in __scale_tsc()
978 _tsc += (tsc >> 32) * frac; in __scale_tsc()
979 _tsc += ((tsc & ((1ULL << 32) - 1)) * frac) >> 32; in __scale_tsc()
984 static u64 svm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) in svm_scale_tsc() argument
987 u64 _tsc = tsc; in svm_scale_tsc()
990 _tsc = __scale_tsc(svm->tsc_ratio, tsc); in svm_scale_tsc()
1080 u64 tsc; in svm_compute_tsc_offset() local
1082 tsc = svm_scale_tsc(vcpu, native_read_tsc()); in svm_compute_tsc_offset()
[all …]
Dx86.c1252 u64 tsc = pvclock_scale_delta(kernel_ns-vcpu->arch.this_tsc_nsec, in compute_guest_tsc() local
1255 tsc += vcpu->arch.this_tsc_write; in compute_guest_tsc()
1256 return tsc; in compute_guest_tsc()
1641 u64 tsc = compute_guest_tsc(v, kernel_ns); in kvm_guest_time_update() local
1642 if (tsc > tsc_timestamp) { in kvm_guest_time_update()
1643 adjust_tsc_offset_guest(v, tsc - tsc_timestamp); in kvm_guest_time_update()
1644 tsc_timestamp = tsc; in kvm_guest_time_update()
Demulate.c3149 u64 tsc = 0; in em_rdtsc() local
3151 ctxt->ops->get_msr(ctxt, MSR_IA32_TSC, &tsc); in em_rdtsc()
3152 *reg_write(ctxt, VCPU_REGS_RAX) = (u32)tsc; in em_rdtsc()
3153 *reg_write(ctxt, VCPU_REGS_RDX) = tsc >> 32; in em_rdtsc()
/linux-4.1.27/tools/perf/util/
DBuild74 libperf-$(CONFIG_X86) += tsc.o
/linux-4.1.27/include/uapi/linux/
Dwireless.h870 __u8 tsc[IW_ENCODE_SEQ_MAX_SIZE]; /* LSB first */ member
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dlib.c949 tkip_tx_sc = &data->rsc_tsc->all_tsc_rsc.tkip.tsc; in iwlagn_wowlan_program_keys()
1004 aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc; in iwlagn_wowlan_program_keys()
Dcommands.h3834 struct tkip_sc tsc; member
3844 struct aes_sc tsc; member
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_pt.c97 PMU_FORMAT_ATTR(tsc, "config:10" );
/linux-4.1.27/arch/s390/kernel/
Dtime.c1497 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()
/linux-4.1.27/drivers/edac/
Dsb_edac.c2203 sbridge_mc_printk(mci, KERN_DEBUG, "TSC %llx ", mce->tsc); in sbridge_mce_check_error()
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dhal.h2831 u8 tsc[WCN36XX_HAL_CIPHER_SEQ_CTR_SIZE]; member
/linux-4.1.27/include/net/
Dcfg80211.h4202 const u8 *tsc, gfp_t gfp);
/linux-4.1.27/Documentation/
Dkernel-parameters.txt624 Format: { pit | tsc | cyclone | pmtmr }
637 [X86-32] pit,hpet,tsc;
644 [X86-64] hpet,tsc
3705 tsc= Disable clocksource stability checks for TSC.
3707 [x86] reliable: mark tsc clocksource as reliable, this
/linux-4.1.27/Documentation/trace/
Dftrace.txt326 [local] global counter x86-tsc
346 x86-tsc: Architectures may define their own clocks. For