Lines Matching refs:rd
88 struct clock_read_data *rd; in sched_clock() local
91 rd = sched_clock_read_begin(&seq); in sched_clock()
93 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock()
94 rd->sched_clock_mask; in sched_clock()
95 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
111 static void update_clock_read_data(struct clock_read_data *rd) in update_clock_read_data() argument
114 cd.read_data[1] = *rd; in update_clock_read_data()
120 cd.read_data[0] = *rd; in update_clock_read_data()
133 struct clock_read_data rd; in update_sched_clock() local
135 rd = cd.read_data[0]; in update_sched_clock()
138 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
140 rd.epoch_ns = ns; in update_sched_clock()
141 rd.epoch_cyc = cyc; in update_sched_clock()
143 update_clock_read_data(&rd); in update_sched_clock()
160 struct clock_read_data rd; in sched_clock_register() local
178 rd = cd.read_data[0]; in sched_clock_register()
183 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()
186 rd.read_sched_clock = read; in sched_clock_register()
187 rd.sched_clock_mask = new_mask; in sched_clock_register()
188 rd.mult = new_mult; in sched_clock_register()
189 rd.shift = new_shift; in sched_clock_register()
190 rd.epoch_cyc = new_epoch; in sched_clock_register()
191 rd.epoch_ns = ns; in sched_clock_register()
193 update_clock_read_data(&rd); in sched_clock_register()
268 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_suspend() local
272 rd->read_sched_clock = suspended_sched_clock_read; in sched_clock_suspend()
273 trace_android_vh_show_suspend_epoch_val(rd->epoch_ns, rd->epoch_cyc); in sched_clock_suspend()
280 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_resume() local
282 rd->epoch_cyc = cd.actual_read_sched_clock(); in sched_clock_resume()
284 rd->read_sched_clock = cd.actual_read_sched_clock; in sched_clock_resume()
285 trace_android_vh_show_resume_epoch_val(rd->epoch_cyc); in sched_clock_resume()