Lines Matching refs:ctx
135 static int MatchReserverCmdline(const NAME_VALUE_PAIR* nv, CmdLineIteratorCtx *ctx, const char *name,
164 if (ctx->matches[i]) {
168 if (isSnSet && ctx->gotSn) {
174 ctx->matches[i] = true;
176 ctx->gotSn = true;
198 CmdLineIteratorCtx *ctx = (CmdLineIteratorCtx *)context;
199 char *data = (char *)ctx->cmdline;
214 if (MatchReserverCmdline(nv, ctx, name, &container) == 0) {
244 CmdLineIteratorCtx ctx;
246 ctx.gotSn = false;
247 ctx.cmdline = ReadFileData(BOOT_CMD_LINE);
248 PARAM_CHECK(ctx.cmdline != NULL, return -1, "Failed to read file %s", BOOT_CMD_LINE);
250 ctx.matches = matches;
251 IterateNameValuePairs(ctx.cmdline, CmdlineIterator, (void *)(&ctx));
254 if (!ctx.gotSn) {
259 free(ctx.cmdline);