Lines Matching refs:tp
167 register struct protox *tp; /* for printing cblocks & stats */ local
235 if ((tp = name2protox(optarg)) == NULL) {
307 if (tp->pr_stats)
308 (*tp->pr_stats)(nl[tp->pr_sindex].n_value,
309 tp->pr_name);
311 printf("%s: no stats routine\n", tp->pr_name);
346 for (tp = protox; tp->pr_name; tp++)
347 if (strcmp(tp->pr_name, p->p_name) == 0)
349 if (tp->pr_name == 0 || tp->pr_wanted == 0)
351 printproto(tp, p->p_name);
356 for (tp = nsprotox; tp->pr_name; tp++)
357 printproto(tp, tp->pr_name);
359 for (tp = isoprotox; tp->pr_name; tp++)
360 printproto(tp, tp->pr_name);
372 printproto(tp, name) in printproto() argument
373 register struct protox *tp; in printproto()
380 pr = tp->pr_stats;
381 off = nl[tp->pr_sindex].n_value;
383 pr = tp->pr_cblocks;
384 off = nl[tp->pr_index].n_value;
430 struct protox **tpp, *tp; local
433 for (tp = *tpp; tp->pr_name; tp++)
434 if (strcmp(tp->pr_name, name) == 0)
435 return (tp);
446 struct protox *tp; local
454 if (tp = knownname(name))
455 return (tp);