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()
192 struct cyc2ns *c2n = &per_cpu(cyc2ns, cpu); in cyc2ns_init()
214 data = this_cpu_read(cyc2ns.head); in cycles_2_ns()
215 tail = this_cpu_read(cyc2ns.tail); in cycles_2_ns()
231 this_cpu_write(cyc2ns.tail, data); in cycles_2_ns()
866 this_cpu_write(cyc2ns.data[0].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
867 this_cpu_write(cyc2ns.data[1].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
872 per_cpu(cyc2ns.data[0].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
873 per_cpu(cyc2ns.data[1].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()