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