Lines Matching refs:tp

282 	tdesc_t *tp = arg1;  in write_type()  local
291 int isroot = tp->t_flags & TDESC_F_ISROOT; in write_type()
308 if (++b->nptent < CTF_V3_TYPE_TO_INDEX(tp->t_id)) { in write_type()
310 b->nptent - 1, CTF_V3_TYPE_TO_INDEX(tp->t_id)); in write_type()
314 while (b->nptent < CTF_V3_TYPE_TO_INDEX(tp->t_id)) { in write_type()
320 offset = strtab_insert(&b->ctb_strtab, tp->t_name); in write_type()
323 switch (tp->t_type) { in write_type()
325 ip = tp->t_intr; in write_type()
331 write_sized_type_rec(b, &ctt, tp->t_size); in write_type()
356 ctt.ctt_type = tp->t_tdesc->t_id; in write_type()
362 write_sized_type_rec(b, &ctt, tp->t_size); in write_type()
364 cta.cta_contents = tp->t_ardef->ad_contents->t_id; in write_type()
365 cta.cta_index = tp->t_ardef->ad_idxtype->t_id; in write_type()
366 cta.cta_nelems = tp->t_ardef->ad_nelems; in write_type()
377 for (i = 0, mp = tp->t_members; mp != NULL; mp = mp->ml_next) in write_type()
382 tdesc_name(tp), i, CTF_V3_MAX_VLEN); in write_type()
385 if (tp->t_type == STRUCT) in write_type()
390 write_sized_type_rec(b, &ctt, tp->t_size); in write_type()
392 if (tp->t_size < CTF_V3_LSTRUCT_THRESH) { in write_type()
393 for (mp = tp->t_members; mp != NULL; mp = mp->ml_next) { in write_type()
409 for (mp = tp->t_members; mp != NULL; mp = mp->ml_next) { in write_type()
434 for (i = 0, ep = tp->t_emem; ep != NULL; ep = ep->el_next) in write_type()
442 write_sized_type_rec(b, &ctt, tp->t_size); in write_type()
444 for (ep = tp->t_emem; ep != NULL && i > 0; ep = ep->el_next) { in write_type()
467 ctt.ctt_type = tp->t_tdesc->t_id; in write_type()
473 ctt.ctt_type = tp->t_tdesc->t_id; in write_type()
479 ctt.ctt_type = tp->t_tdesc->t_id; in write_type()
484 i = tp->t_fndef->fn_nargs + tp->t_fndef->fn_vargs; in write_type()
488 tdesc_name(tp), i, CTF_V3_MAX_VLEN); in write_type()
492 ctt.ctt_type = tp->t_fndef->fn_ret->t_id; in write_type()
495 for (i = 0; i < (int) tp->t_fndef->fn_nargs; i++) { in write_type()
496 id = tp->t_fndef->fn_args[i]->t_id; in write_type()
505 if (tp->t_fndef->fn_vargs) { in write_type()
515 ctt.ctt_type = tp->t_tdesc->t_id; in write_type()
520 warning("Can't write unknown type %d\n", tp->t_type); in write_type()
523 debug(3, "Wrote type %d %s\n", tp->t_id, tdesc_name(tp)); in write_type()