Lines Matching refs:rec
228 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
230 rec->ip |= cpu; in pstore_ftrace_encode_cpu()
234 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
236 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
240 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
242 return rec->ts; in pstore_ftrace_read_timestamp()
246 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
248 rec->ts = val; in pstore_ftrace_write_timestamp()
252 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument
254 rec->ts &= ~(TS_CPU_MASK); in pstore_ftrace_encode_cpu()
255 rec->ts |= cpu; in pstore_ftrace_encode_cpu()
259 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument
261 return rec->ts & TS_CPU_MASK; in pstore_ftrace_decode_cpu()
265 pstore_ftrace_read_timestamp(struct pstore_ftrace_record *rec) in pstore_ftrace_read_timestamp() argument
267 return rec->ts >> TS_CPU_SHIFT; in pstore_ftrace_read_timestamp()
271 pstore_ftrace_write_timestamp(struct pstore_ftrace_record *rec, u64 val) in pstore_ftrace_write_timestamp() argument
273 rec->ts = (rec->ts & TS_CPU_MASK) | (val << TS_CPU_SHIFT); in pstore_ftrace_write_timestamp()