Lines Matching refs:p
38 static bool trace_check_bounds(struct trace_buffer *tb, void *p) in trace_check_bounds() argument
40 return p < ((void *)tb + tb->size); in trace_check_bounds()
43 static bool trace_check_alloc(struct trace_buffer *tb, void *p) in trace_check_alloc() argument
54 if (!trace_check_bounds(tb, p)) { in trace_check_alloc()
64 void *p, *newtail; in trace_alloc() local
66 p = tb->tail; in trace_alloc()
73 return p; in trace_alloc()
90 u64 *p; in trace_log_reg() local
97 p = (u64 *)e->data; in trace_log_reg()
98 *p++ = reg; in trace_log_reg()
99 *p++ = value; in trace_log_reg()
107 u64 *p; in trace_log_counter() local
114 p = (u64 *)e->data; in trace_log_counter()
115 *p++ = value; in trace_log_counter()
123 char *p; in trace_log_string() local
134 p = (char *)e->data; in trace_log_string()
135 memcpy(p, str, len); in trace_log_string()
136 p += len; in trace_log_string()
137 *p = '\0'; in trace_log_string()
202 u64 *p, *reg, *value; in trace_print_reg() local
205 p = (u64 *)e->data; in trace_print_reg()
206 reg = p++; in trace_print_reg()
207 value = p; in trace_print_reg()
273 void *p; in trace_buffer_print() local
282 p = tb->data; in trace_buffer_print()
287 while (trace_check_bounds(tb, p) && p < tb->tail) { in trace_buffer_print()
288 e = p; in trace_buffer_print()
293 p = (void *)e + sizeof(*e) + e->length; in trace_buffer_print()