Lines Matching refs:arg_name

1124 static inline bool verity_is_verity_mode(const char *arg_name)  in verity_is_verity_mode()  argument
1126 return (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING) || in verity_is_verity_mode()
1127 !strcasecmp(arg_name, DM_VERITY_OPT_RESTART) || in verity_is_verity_mode()
1128 !strcasecmp(arg_name, DM_VERITY_OPT_PANIC)); in verity_is_verity_mode()
1131 static int verity_parse_verity_mode(struct dm_verity *v, const char *arg_name) in verity_parse_verity_mode() argument
1136 if (!strcasecmp(arg_name, DM_VERITY_OPT_LOGGING)) in verity_parse_verity_mode()
1138 else if (!strcasecmp(arg_name, DM_VERITY_OPT_RESTART)) in verity_parse_verity_mode()
1140 else if (!strcasecmp(arg_name, DM_VERITY_OPT_PANIC)) in verity_parse_verity_mode()
1146 static inline bool verity_is_verity_error_mode(const char *arg_name) in verity_is_verity_error_mode() argument
1148 return (!strcasecmp(arg_name, DM_VERITY_OPT_ERROR_RESTART) || in verity_is_verity_error_mode()
1149 !strcasecmp(arg_name, DM_VERITY_OPT_ERROR_PANIC)); in verity_is_verity_error_mode()
1152 static int verity_parse_verity_error_mode(struct dm_verity *v, const char *arg_name) in verity_parse_verity_error_mode() argument
1157 if (!strcasecmp(arg_name, DM_VERITY_OPT_ERROR_RESTART)) in verity_parse_verity_error_mode()
1159 else if (!strcasecmp(arg_name, DM_VERITY_OPT_ERROR_PANIC)) in verity_parse_verity_error_mode()
1172 const char *arg_name; in verity_parse_opt_args() local
1186 arg_name = dm_shift_arg(as); in verity_parse_opt_args()
1189 if (verity_is_verity_mode(arg_name)) { in verity_parse_opt_args()
1192 r = verity_parse_verity_mode(v, arg_name); in verity_parse_opt_args()
1199 } else if (verity_is_verity_error_mode(arg_name)) { in verity_parse_opt_args()
1202 r = verity_parse_verity_error_mode(v, arg_name); in verity_parse_opt_args()
1209 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_IGN_ZEROES)) { in verity_parse_opt_args()
1219 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_AT_MOST_ONCE)) { in verity_parse_opt_args()
1227 } else if (!strcasecmp(arg_name, DM_VERITY_OPT_TASKLET_VERIFY)) { in verity_parse_opt_args()
1232 } else if (verity_is_fec_opt_arg(arg_name)) { in verity_parse_opt_args()
1235 r = verity_fec_parse_opt_args(as, v, &argc, arg_name); in verity_parse_opt_args()
1240 } else if (verity_verify_is_sig_opt_arg(arg_name)) { in verity_parse_opt_args()
1245 &argc, arg_name); in verity_parse_opt_args()
1260 DMERR("Unrecognized verity feature request: %s", arg_name); in verity_parse_opt_args()