Lines Matching refs:rd

85 	struct clock_read_data *rd;  in sched_clock_noinstr()  local
91 rd = cd.read_data + (seq & 1); in sched_clock_noinstr()
93 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock_noinstr()
94 rd->sched_clock_mask; in sched_clock_noinstr()
95 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock_noinstr()
120 static void update_clock_read_data(struct clock_read_data *rd) in update_clock_read_data() argument
123 cd.read_data[1] = *rd; in update_clock_read_data()
129 cd.read_data[0] = *rd; in update_clock_read_data()
142 struct clock_read_data rd; in update_sched_clock() local
144 rd = cd.read_data[0]; in update_sched_clock()
147 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
149 rd.epoch_ns = ns; in update_sched_clock()
150 rd.epoch_cyc = cyc; in update_sched_clock()
152 update_clock_read_data(&rd); in update_sched_clock()
170 struct clock_read_data rd; in sched_clock_register() local
188 rd = cd.read_data[0]; in sched_clock_register()
193 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()
196 rd.read_sched_clock = read; in sched_clock_register()
197 rd.sched_clock_mask = new_mask; in sched_clock_register()
198 rd.mult = new_mult; in sched_clock_register()
199 rd.shift = new_shift; in sched_clock_register()
200 rd.epoch_cyc = new_epoch; in sched_clock_register()
201 rd.epoch_ns = ns; in sched_clock_register()
203 update_clock_read_data(&rd); in sched_clock_register()
277 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_suspend() local
281 rd->read_sched_clock = suspended_sched_clock_read; in sched_clock_suspend()
288 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_resume() local
290 rd->epoch_cyc = cd.actual_read_sched_clock(); in sched_clock_resume()
292 rd->read_sched_clock = cd.actual_read_sched_clock; in sched_clock_resume()