Lines Matching refs:opts

126 static int parse_config(struct env_opts *opts);
252 int fw_printenv(int argc, char *argv[], int value_only, struct env_opts *opts) in fw_printenv() argument
262 if (!opts) in fw_printenv()
263 opts = &default_opts; in fw_printenv()
265 if (fw_env_open(opts)) in fw_printenv()
281 fw_env_close(opts); in fw_printenv()
304 fw_env_close(opts); in fw_printenv()
309 int fw_env_flush(struct env_opts *opts) in fw_env_flush() argument
313 if (!opts) in fw_env_flush()
314 opts = &default_opts; in fw_env_flush()
316 if (opts->aes_flag) { in fw_env_flush()
318 opts->aes_key); in fw_env_flush()
471 int fw_env_set(int argc, char *argv[], struct env_opts *opts) in fw_env_set() argument
481 if (!opts) in fw_env_set()
482 opts = &default_opts; in fw_env_set()
490 if (fw_env_open(opts)) { in fw_env_set()
500 fw_env_close(opts); in fw_env_set()
530 ret = fw_env_flush(opts); in fw_env_set()
531 fw_env_close(opts); in fw_env_set()
553 int fw_parse_script(char *fname, struct env_opts *opts) in fw_parse_script() argument
563 if (!opts) in fw_parse_script()
564 opts = &default_opts; in fw_parse_script()
566 if (fw_env_open(opts)) { in fw_parse_script()
654 ret |= fw_env_flush(opts); in fw_parse_script()
656 fw_env_close(opts); in fw_parse_script()
1132 int fw_env_open(struct env_opts *opts) in fw_env_open() argument
1147 if (!opts) in fw_env_open()
1148 opts = &default_opts; in fw_env_open()
1150 if (parse_config(opts)) /* should fill envdevices */ in fw_env_open()
1185 if (opts->aes_flag) { in fw_env_open()
1187 opts->aes_key); in fw_env_open()
1247 if (opts->aes_flag) { in fw_env_open()
1249 opts->aes_key); in fw_env_open()
1337 int fw_env_close(struct env_opts *opts) in fw_env_close() argument
1435 static int parse_config(struct env_opts *opts) in parse_config() argument
1439 if (!opts) in parse_config()
1440 opts = &default_opts; in parse_config()
1444 if (get_config(opts->config_file)) { in parse_config()
1446 opts->config_file); in parse_config()
1501 if (opts->aes_flag) in parse_config()