Lines Matching refs:te
310 static unsigned long long trailer_timestamp(struct hws_trailer_entry *te, in trailer_timestamp() argument
318 memcpy(&ts, &te->timestamp[idx], sizeof(ts)); in trailer_timestamp()
324 struct hws_trailer_entry *te) in s390_cpumsf_trailer_show() argument
328 const unsigned long long flags = be64toh(te->flags); in s390_cpumsf_trailer_show()
336 memcpy(&local.timestamp, te->timestamp, sizeof(te->timestamp)); in s390_cpumsf_trailer_show()
337 local.overflow = be64toh(te->overflow); in s390_cpumsf_trailer_show()
338 local.clock_base = be64toh(te->progusage[0]) >> 63 & 1; in s390_cpumsf_trailer_show()
339 local.progusage2 = be64toh(te->progusage2); in s390_cpumsf_trailer_show()
340 te = &local; in s390_cpumsf_trailer_show()
342 if (te->bsdes != sizeof(struct hws_basic_entry)) { in s390_cpumsf_trailer_show()
350 te->f ? 'F' : ' ', in s390_cpumsf_trailer_show()
351 te->a ? 'A' : ' ', in s390_cpumsf_trailer_show()
352 te->t ? 'T' : ' ', in s390_cpumsf_trailer_show()
353 te->bsdes, te->dsdes, te->overflow, in s390_cpumsf_trailer_show()
354 trailer_timestamp(te, te->clock_base), in s390_cpumsf_trailer_show()
355 te->clock_base, te->progusage2); in s390_cpumsf_trailer_show()
377 struct hws_trailer_entry *te; in s390_cpumsf_validate() local
385 te = (struct hws_trailer_entry *)(buf + S390_CPUMSF_PAGESZ in s390_cpumsf_validate()
386 - sizeof(*te)); in s390_cpumsf_validate()
387 *bsdes = be16toh(te->bsdes); in s390_cpumsf_validate()
388 *dsdes = be16toh(te->dsdes); in s390_cpumsf_validate()
389 if (!te->bsdes && !te->dsdes) { in s390_cpumsf_validate()
475 struct hws_trailer_entry te; in s390_cpumsf_dump() local
479 pos -= sizeof(te); in s390_cpumsf_dump()
480 memcpy(&te, buf + pos, sizeof(te)); in s390_cpumsf_dump()
484 te.bsdes = bsdes; in s390_cpumsf_dump()
485 te.dsdes = dsdes; in s390_cpumsf_dump()
486 if (s390_cpumsf_trailer_show(color, pos, &te)) in s390_cpumsf_dump()
487 pos += sizeof(te); in s390_cpumsf_dump()
549 struct hws_trailer_entry *te; in get_trailer_time() local
553 te = (struct hws_trailer_entry *)(buf + S390_CPUMSF_PAGESZ in get_trailer_time()
554 - sizeof(*te)); in get_trailer_time()
557 clock_base = be64toh(te->progusage[0]) >> 63 & 0x1; in get_trailer_time()
558 progusage2 = be64toh(te->progusage[1]); in get_trailer_time()
560 clock_base = te->clock_base; in get_trailer_time()
561 progusage2 = te->progusage2; in get_trailer_time()
570 aux_time = trailer_timestamp(te, clock_base) - progusage2; in get_trailer_time()