Lines Matching refs:arr
28 const struct value_name_pair *arr; member
264 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local
274 for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { in scsi_opcode_sa_name()
276 arr = sa_name_ptr->arr; in scsi_opcode_sa_name()
281 if (!arr) in scsi_opcode_sa_name()
284 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name()
285 if (service_action == arr->value) in scsi_opcode_sa_name()
289 *sa_name = arr->name; in scsi_opcode_sa_name()
435 const struct value_name_pair *arr = scsi_mlreturn_arr; in scsi_mlreturn_string() local
438 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string()
439 if (result == arr->value) in scsi_mlreturn_string()
440 return arr->name; in scsi_mlreturn_string()