Lines Matching refs:rd
87 struct clock_read_data *rd; in sched_clock() local
90 rd = sched_clock_read_begin(&seq); in sched_clock()
92 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock()
93 rd->sched_clock_mask; in sched_clock()
94 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
110 static void update_clock_read_data(struct clock_read_data *rd) in update_clock_read_data() argument
113 cd.read_data[1] = *rd; in update_clock_read_data()
119 cd.read_data[0] = *rd; in update_clock_read_data()
132 struct clock_read_data rd; in update_sched_clock() local
134 rd = cd.read_data[0]; in update_sched_clock()
137 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
139 rd.epoch_ns = ns; in update_sched_clock()
140 rd.epoch_cyc = cyc; in update_sched_clock()
142 update_clock_read_data(&rd); in update_sched_clock()
159 struct clock_read_data rd; in sched_clock_register() local
177 rd = cd.read_data[0]; in sched_clock_register()
182 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()
185 rd.read_sched_clock = read; in sched_clock_register()
186 rd.sched_clock_mask = new_mask; in sched_clock_register()
187 rd.mult = new_mult; in sched_clock_register()
188 rd.shift = new_shift; in sched_clock_register()
189 rd.epoch_cyc = new_epoch; in sched_clock_register()
190 rd.epoch_ns = ns; in sched_clock_register()
192 update_clock_read_data(&rd); in sched_clock_register()
269 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_suspend() local
273 rd->read_sched_clock = suspended_sched_clock_read; in sched_clock_suspend()
274 trace_android_vh_show_suspend_epoch_val(rd->epoch_ns, rd->epoch_cyc); in sched_clock_suspend()
281 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_resume() local
283 rd->epoch_cyc = cd.actual_read_sched_clock(); in sched_clock_resume()
285 rd->read_sched_clock = cd.actual_read_sched_clock; in sched_clock_resume()
286 trace_android_vh_show_resume_epoch_val(rd->epoch_cyc); in sched_clock_resume()