Lines Matching refs:rec
242 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
244 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
248 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
250 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
254 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
256 return rec->ts; in pstore_ftrace_read_timestamp()
260 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
262 rec->ts = val; in pstore_ftrace_write_timestamp()
266 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
268 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
269 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
273 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
275 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
279 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
281 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
285 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
287 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()