Lines Matching refs:cmd_match
2868 static int cmd_match(const char *cmd, const char *str) in cmd_match() function
2955 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
2962 } else if (cmd_match(buf, "remove")) { in state_store()
2983 } else if (cmd_match(buf, "writemostly")) { in state_store()
2988 } else if (cmd_match(buf, "-writemostly")) { in state_store()
2993 } else if (cmd_match(buf, "blocked")) { in state_store()
2996 } else if (cmd_match(buf, "-blocked")) { in state_store()
3012 } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { in state_store()
3015 } else if (cmd_match(buf, "failfast")) { in state_store()
3019 } else if (cmd_match(buf, "-failfast")) { in state_store()
3023 } else if (cmd_match(buf, "-insync") && rdev->raid_disk >= 0 && in state_store()
3031 } else if (cmd_match(buf, "write_error")) { in state_store()
3034 } else if (cmd_match(buf, "-write_error")) { in state_store()
3037 } else if (cmd_match(buf, "want_replacement")) { in state_store()
3049 } else if (cmd_match(buf, "-want_replacement")) { in state_store()
3055 } else if (cmd_match(buf, "replacement")) { in state_store()
3066 } else if (cmd_match(buf, "-replacement")) { in state_store()
3074 } else if (cmd_match(buf, "re-add")) { in state_store()
3092 } else if (cmd_match(buf, "external_bbl") && (rdev->mddev->external)) { in state_store()
3096 } else if (cmd_match(buf, "-external_bbl") && (rdev->mddev->external)) { in state_store()
3434 if (cmd_match(buf, "none")) in recovery_start_store()
4257 if (cmd_match(buf, "none")) in resync_start_store()
4335 if (cmd_match(word, list[n])) in match_word()
4720 if (cmd_match(buf, "none")) { in metadata_store()
4798 if (cmd_match(page, "idle") || cmd_match(page, "frozen")) { in action_store()
4799 if (cmd_match(page, "frozen")) in action_store()
4828 else if (cmd_match(page, "resync")) in action_store()
4830 else if (cmd_match(page, "recover")) { in action_store()
4833 } else if (cmd_match(page, "reshape")) { in action_store()
4851 if (cmd_match(page, "check")) in action_store()
4853 else if (!cmd_match(page, "repair")) in action_store()
5250 if (cmd_match(buf, "forwards")) in reshape_direction_store()
5252 else if (cmd_match(buf, "backwards")) in reshape_direction_store()