Lines Matching refs:rec
240 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
242 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
246 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
248 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
252 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
254 return rec->ts; in pstore_ftrace_read_timestamp()
258 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
260 rec->ts = val; in pstore_ftrace_write_timestamp()
264 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
266 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
267 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
271 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
273 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
277 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
279 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
283 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
285 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()