Home | History | Annotate | Download | only in btt

Lines Matching refs:tp

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