Lines Matching defs:tctx
273 static unsigned char *bootpc_tag(struct bootpc_tagcontext *tctx,
275 static void bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1345 bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1352 if (tctx->badtag != 0 || tctx->badopt != 0)
1365 tctx->badopt = 1;
1370 if (tctx->taglen + len > TAG_MAXLEN) {
1371 tctx->badtag = 1;
1374 tctx->foundopt = 1;
1376 memcpy(tctx->buf + tctx->taglen,
1378 tctx->taglen += len;
1381 tctx->overload = *j;
1388 bootpc_tag(struct bootpc_tagcontext *tctx,
1391 tctx->overload = 0;
1392 tctx->badopt = 0;
1393 tctx->badtag = 0;
1394 tctx->foundopt = 0;
1395 tctx->taglen = 0;
1400 bootpc_tag_helper(tctx, &bp->vend[4],
1403 if ((tctx->overload & OVERLOAD_FILE) != 0)
1404 bootpc_tag_helper(tctx,
1408 if ((tctx->overload & OVERLOAD_SNAME) != 0)
1409 bootpc_tag_helper(tctx,
1414 if (tctx->badopt != 0 || tctx->badtag != 0 || tctx->foundopt == 0)
1416 tctx->buf[tctx->taglen] = '\0';
1417 return tctx->buf;