Lines Matching refs:arg_name
948 static inline bool verity_is_verity_mode(const char *arg_name) in verity_is_verity_mode() argument
950 return (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING) || in verity_is_verity_mode()
951 !strcasecmp(arg_name, DM_VERITY_OPT_RESTART) || in verity_is_verity_mode()
952 !strcasecmp(arg_name, DM_VERITY_OPT_PANIC)); in verity_is_verity_mode()
955 static int verity_parse_verity_mode(struct dm_verity *v, const char *arg_name) in verity_parse_verity_mode() argument
960 if (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING)) in verity_parse_verity_mode()
962 else if (!strcasecmp(arg_name, DM_VERITY_OPT_RESTART)) in verity_parse_verity_mode()
964 else if (!strcasecmp(arg_name, DM_VERITY_OPT_PANIC)) in verity_parse_verity_mode()
976 const char *arg_name; in verity_parse_opt_args() local
990 arg_name = dm_shift_arg(as); in verity_parse_opt_args()
993 if (verity_is_verity_mode(arg_name)) { in verity_parse_opt_args()
994 r = verity_parse_verity_mode(v, arg_name); in verity_parse_opt_args()
1001 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_IGN_ZEROES)) { in verity_parse_opt_args()
1009 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_AT_MOST_ONCE)) { in verity_parse_opt_args()
1015 } else if (verity_is_fec_opt_arg(arg_name)) { in verity_parse_opt_args()
1016 r = verity_fec_parse_opt_args(as, v, &argc, arg_name); in verity_parse_opt_args()
1020 } else if (verity_verify_is_sig_opt_arg(arg_name)) { in verity_parse_opt_args()
1023 &argc, arg_name); in verity_parse_opt_args()