Lines Matching refs:rec
229 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
231 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
235 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
237 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
241 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
243 return rec->ts; in pstore_ftrace_read_timestamp()
247 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
249 rec->ts = val; in pstore_ftrace_write_timestamp()
253 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
255 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
256 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
260 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
262 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
266 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
268 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
272 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
274 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()