• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/cddl/contrib/opensolaris/common/ctf/

Lines Matching refs:tp

31 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep,
37 tp->ctt_size == CTF_LSIZE_SENT) {
38 size = CTF_TYPE_LSIZE(tp);
41 size = tp->ctt_size;
61 const ctf_type_t *tp;
69 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
72 (void) ctf_get_ctt_size(fp, tp, &size, &increment);
73 kind = LCTF_INFO_KIND(fp, tp->ctt_info);
80 ((uintptr_t)tp + increment);
82 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, mp++) {
91 ((uintptr_t)tp + increment);
93 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, lmp++) {
112 const ctf_type_t *tp;
121 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
124 if (LCTF_INFO_KIND(fp, tp->ctt_info) != CTF_K_ENUM)
127 (void) ctf_get_ctt_size(fp, tp, NULL, &increment);
129 ep = (const ctf_enum_t *)((uintptr_t)tp + increment);
131 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, ep++) {
151 const ctf_type_t *tp = LCTF_INDEX_TO_TYPEPTR(fp, id);
152 if (CTF_INFO_ISROOT(tp->ctt_info) &&
172 const ctf_type_t *tp;
174 while ((tp = ctf_lookup_by_id(&fp, type)) != NULL) {
175 switch (LCTF_INFO_KIND(fp, tp->ctt_info)) {
180 if (tp->ctt_type == type || tp->ctt_type == otype ||
181 tp->ctt_type == prev) {
186 type = tp->ctt_type;
241 const ctf_type_t *tp =
243 const char *name = ctf_strptr(rfp, tp->ctt_name);
347 const ctf_type_t *tp;
354 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
357 switch (LCTF_INFO_KIND(fp, tp->ctt_info)) {
375 if ((size = ctf_get_ctt_size(fp, tp, NULL, NULL)) > 0)
385 return (ctf_get_ctt_size(fp, tp, NULL, NULL));
396 const ctf_type_t *tp;
402 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
405 switch (LCTF_INFO_KIND(fp, tp->ctt_info)) {
417 uint_t n = LCTF_INFO_VLEN(fp, tp->ctt_info);
422 (void) ctf_get_ctt_size(fp, tp, &size, &increment);
423 vmp = (uchar_t *)tp + increment;
425 if (LCTF_INFO_KIND(fp, tp->ctt_info) == CTF_K_STRUCT)
450 return (ctf_get_ctt_size(fp, tp, NULL, NULL));
460 const ctf_type_t *tp;
462 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
465 return (LCTF_INFO_KIND(fp, tp->ctt_info));
476 const ctf_type_t *tp;
478 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
481 switch (LCTF_INFO_KIND(fp, tp->ctt_info)) {
487 return (tp->ctt_type);
531 const ctf_type_t *tp;
535 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
538 (void) ctf_get_ctt_size(fp, tp, NULL, &increment);
540 switch (LCTF_INFO_KIND(fp, tp->ctt_info)) {
542 data = *(const uint_t *)((uintptr_t)tp + increment);
548 data = *(const uint_t *)((uintptr_t)tp + increment);
652 const ctf_type_t *tp;
659 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
662 (void) ctf_get_ctt_size(fp, tp, &size, &increment);
663 kind = LCTF_INFO_KIND(fp, tp->ctt_info);
670 ((uintptr_t)tp + increment);
672 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, mp++) {
685 ((uintptr_t)tp + increment);
687 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, lmp++) {
722 const ctf_type_t *tp;
726 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
729 if (LCTF_INFO_KIND(fp, tp->ctt_info) != CTF_K_ARRAY)
732 (void) ctf_get_ctt_size(fp, tp, NULL, &increment);
734 ap = (const ctf_array_t *)((uintptr_t)tp + increment);
750 const ctf_type_t *tp;
758 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
761 if (LCTF_INFO_KIND(fp, tp->ctt_info) != CTF_K_ENUM) {
766 (void) ctf_get_ctt_size(fp, tp, NULL, &increment);
768 ep = (const ctf_enum_t *)((uintptr_t)tp + increment);
770 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, ep++) {
787 const ctf_type_t *tp;
795 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
798 if (LCTF_INFO_KIND(fp, tp->ctt_info) != CTF_K_ENUM) {
803 (void) ctf_get_ctt_size(fp, tp, &size, &increment);
805 ep = (const ctf_enum_t *)((uintptr_t)tp + increment);
807 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, ep++) {
831 const ctf_type_t *tp;
839 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL)
845 kind = LCTF_INFO_KIND(fp, tp->ctt_info);
850 (void) ctf_get_ctt_size(fp, tp, &size, &increment);
854 ((uintptr_t)tp + increment);
856 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, mp++) {
865 ((uintptr_t)tp + increment);
867 for (n = LCTF_INFO_VLEN(fp, tp->ctt_info); n != 0; n--, lmp++) {