Lines Matching refs:cmd_match
2307 static int cmd_match(const char *cmd, const char *str) in cmd_match() function
2373 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
2376 } else if (cmd_match(buf, "remove")) { in state_store()
2387 } else if (cmd_match(buf, "writemostly")) { in state_store()
2390 } else if (cmd_match(buf, "-writemostly")) { in state_store()
2393 } else if (cmd_match(buf, "blocked")) { in state_store()
2396 } else if (cmd_match(buf, "-blocked")) { in state_store()
2403 } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { in state_store()
2681 if (cmd_match(buf, "none")) in recovery_start_store()
3329 if (cmd_match(buf, "none")) in resync_start_store()
3386 if (cmd_match(word, list[n])) in match_word()
3708 if (cmd_match(buf, "none")) { in metadata_store()
3779 if (cmd_match(page, "frozen")) in action_store()
3784 if (cmd_match(page, "idle") || cmd_match(page, "frozen")) { in action_store()
3792 else if (cmd_match(page, "resync")) in action_store()
3794 else if (cmd_match(page, "recover")) { in action_store()
3797 } else if (cmd_match(page, "reshape")) { in action_store()
3806 if (cmd_match(page, "check")) in action_store()
3808 else if (!cmd_match(page, "repair")) in action_store()