Lines Matching refs:arg_name
1030 static inline bool verity_is_verity_mode(const char *arg_name) in verity_is_verity_mode() argument
1032 return (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING) || in verity_is_verity_mode()
1033 !strcasecmp(arg_name, DM_VERITY_OPT_RESTART) || in verity_is_verity_mode()
1034 !strcasecmp(arg_name, DM_VERITY_OPT_PANIC)); in verity_is_verity_mode()
1037 static int verity_parse_verity_mode(struct dm_verity *v, const char *arg_name) in verity_parse_verity_mode() argument
1042 if (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING)) in verity_parse_verity_mode()
1044 else if (!strcasecmp(arg_name, DM_VERITY_OPT_RESTART)) in verity_parse_verity_mode()
1046 else if (!strcasecmp(arg_name, DM_VERITY_OPT_PANIC)) in verity_parse_verity_mode()
1059 const char *arg_name; in verity_parse_opt_args() local
1073 arg_name = dm_shift_arg(as); in verity_parse_opt_args()
1076 if (verity_is_verity_mode(arg_name)) { in verity_parse_opt_args()
1079 r = verity_parse_verity_mode(v, arg_name); in verity_parse_opt_args()
1086 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_IGN_ZEROES)) { in verity_parse_opt_args()
1096 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_AT_MOST_ONCE)) { in verity_parse_opt_args()
1104 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_TASKLET_VERIFY)) { in verity_parse_opt_args()
1109 } else if (verity_is_fec_opt_arg(arg_name)) { in verity_parse_opt_args()
1112 r = verity_fec_parse_opt_args(as, v, &argc, arg_name); in verity_parse_opt_args()
1117 } else if (verity_verify_is_sig_opt_arg(arg_name)) { in verity_parse_opt_args()
1122 &argc, arg_name); in verity_parse_opt_args()
1137 DMERR("Unrecognized verity feature request: %s", arg_name); in verity_parse_opt_args()