Lines Matching refs:cyc2ns
69 struct cyc2ns { struct
75 static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns);
83 head = this_cpu_read(cyc2ns.head); in cyc2ns_read_begin()
112 this_cpu_write(cyc2ns.tail, head); in cyc2ns_read_end()
125 struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); in cyc2ns_write_begin()
146 struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); in cyc2ns_write_end()
191 struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); in cyc2ns_init()
213 data = this_cpu_read(cyc2ns.head); in cycles_2_ns()
214 tail = this_cpu_read(cyc2ns.tail); in cycles_2_ns()
230 this_cpu_write(cyc2ns.tail, data); in cycles_2_ns()
884 this_cpu_write(cyc2ns.data[0].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
885 this_cpu_write(cyc2ns.data[1].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
890 per_cpu(cyc2ns.data[0].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
891 per_cpu(cyc2ns.data[1].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()