Lines Matching refs:tp
50 struct blk_io_trace *tp, in convert_to_cpu() argument
57 memcpy(tp, t, sizeof(*tp)); in convert_to_cpu()
59 tp->magic = be32_to_cpu(t->magic); in convert_to_cpu()
60 tp->sequence = be32_to_cpu(t->sequence); in convert_to_cpu()
61 tp->time = be64_to_cpu(t->time); in convert_to_cpu()
62 tp->sector = be64_to_cpu(t->sector); in convert_to_cpu()
63 tp->bytes = be32_to_cpu(t->bytes); in convert_to_cpu()
64 tp->action = be32_to_cpu(t->action); in convert_to_cpu()
65 tp->pid = be32_to_cpu(t->pid); in convert_to_cpu()
66 tp->device = be32_to_cpu(t->device); in convert_to_cpu()
67 tp->cpu = be16_to_cpu(t->cpu); in convert_to_cpu()
68 tp->error = be16_to_cpu(t->error); in convert_to_cpu()
69 tp->pdu_len = be16_to_cpu(t->pdu_len); in convert_to_cpu()
72 if (tp->pdu_len) { in convert_to_cpu()
73 *pdu = malloc(tp->pdu_len); in convert_to_cpu()
74 memcpy(*pdu, t+1, tp->pdu_len); in convert_to_cpu()
78 return sizeof(*tp) + tp->pdu_len; in convert_to_cpu()