Lines Matching defs:tctx
255 static unsigned char *bootpc_tag(struct bootpc_tagcontext *tctx,
257 static void bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1334 bootpc_tag_helper(struct bootpc_tagcontext *tctx,
1341 if (tctx->badtag != 0 || tctx->badopt != 0)
1354 tctx->badopt = 1;
1359 if (tctx->taglen + len > TAG_MAXLEN) {
1360 tctx->badtag = 1;
1363 tctx->foundopt = 1;
1365 memcpy(tctx->buf + tctx->taglen,
1367 tctx->taglen += len;
1370 tctx->overload = *j;
1377 bootpc_tag(struct bootpc_tagcontext *tctx,
1380 tctx->overload = 0;
1381 tctx->badopt = 0;
1382 tctx->badtag = 0;
1383 tctx->foundopt = 0;
1384 tctx->taglen = 0;
1389 bootpc_tag_helper(tctx, &bp->vend[4],
1392 if ((tctx->overload & OVERLOAD_FILE) != 0)
1393 bootpc_tag_helper(tctx,
1397 if ((tctx->overload & OVERLOAD_SNAME) != 0)
1398 bootpc_tag_helper(tctx,
1403 if (tctx->badopt != 0 || tctx->badtag != 0 || tctx->foundopt == 0)
1405 tctx->buf[tctx->taglen] = '\0';
1406 return tctx->buf;