Lines Matching defs:tpl
146 struct statsblob_tpl *tpl;
438 stats_tpl_update_hash(struct statsblob_tpl *tpl)
442 tpl->mb->tplhash = hash32_str(tpl->mb->tplname, 0);
443 for (int voi_id = 0; voi_id < NVOIS(tpl->sb); voi_id++) {
444 if (tpl->mb->voi_meta[voi_id].name != NULL)
445 tpl->mb->tplhash = hash32_str(
446 tpl->mb->voi_meta[voi_id].name, tpl->mb->tplhash);
448 tpl->mb->tplhash = hash32_buf(tpl->sb, tpl->sb->cursz,
449 tpl->mb->tplhash);
970 stats_tpl_fetch(int tpl_id, struct statsblob_tpl **tpl)
980 *tpl = tpllist[tpl_id];
981 /* XXXLAS: Acquire refcount on tpl. */
1148 struct statsblobv1_tpl *tpl, **newtpllist;
1159 tpl = stats_realloc(NULL, 0, sizeof(struct statsblobv1_tpl), M_ZERO);
1166 if (tpl == NULL || tpl_sb == NULL || tpl_mb == NULL ||
1168 stats_free(tpl);
1177 tpl->mb = tpl_mb;
1178 tpl->sb = tpl_sb;
1198 tpllist[tpl_id] = (struct statsblob_tpl *)tpl;
1201 stats_free(tpl);
1368 /* XXXLAS: Confirm tpl name/hash pair remains unique. */
2040 tpl_mb = sctx->tpl ? sctx->tpl->mb : NULL;
2102 tpl_mb = sctx->tpl ? sctx->tpl->mb : NULL;
2238 &sctx.tpl))
2241 sctx.tpl = NULL;
3699 s = sbuf_new(NULL, NULL, /* +1 per tpl for , */