Lines Matching refs:tctx
259 static unsigned char *bootpc_tag(struct bootpc_tagcontext *tctx,
261 static void bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1338 bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1345 if (tctx->badtag != 0 || tctx->badopt != 0)
1358 tctx->badopt = 1;
1363 if (tctx->taglen + len > TAG_MAXLEN) {
1364 tctx->badtag = 1;
1367 tctx->foundopt = 1;
1369 memcpy(tctx->buf + tctx->taglen,
1371 tctx->taglen += len;
1374 tctx->overload = *j;
1381 bootpc_tag(struct bootpc_tagcontext *tctx,
1384 tctx->overload = 0;
1385 tctx->badopt = 0;
1386 tctx->badtag = 0;
1387 tctx->foundopt = 0;
1388 tctx->taglen = 0;
1393 bootpc_tag_helper(tctx, &bp->vend[4],
1396 if ((tctx->overload & OVERLOAD_FILE) != 0)
1397 bootpc_tag_helper(tctx,
1401 if ((tctx->overload & OVERLOAD_SNAME) != 0)
1402 bootpc_tag_helper(tctx,
1407 if (tctx->badopt != 0 || tctx->badtag != 0 || tctx->foundopt == 0)
1409 tctx->buf[tctx->taglen] = '\0';
1410 return tctx->buf;