Lines Matching refs:cmd_match

2520 static int cmd_match(const char *cmd, const char *str)  in cmd_match()  function
2604 if (cmd_match(buf, "faulty") && rdev->mddev->pers) { in state_store()
2610 } else if (cmd_match(buf, "remove")) { in state_store()
2621 } else if (cmd_match(buf, "writemostly")) { in state_store()
2624 } else if (cmd_match(buf, "-writemostly")) { in state_store()
2627 } else if (cmd_match(buf, "blocked")) { in state_store()
2630 } else if (cmd_match(buf, "-blocked")) { in state_store()
2645 } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { in state_store()
2648 } else if (cmd_match(buf, "write_error")) { in state_store()
2651 } else if (cmd_match(buf, "-write_error")) { in state_store()
2654 } else if (cmd_match(buf, "want_replacement")) { in state_store()
2665 } else if (cmd_match(buf, "-want_replacement")) { in state_store()
2671 } else if (cmd_match(buf, "replacement")) { in state_store()
2682 } else if (cmd_match(buf, "-replacement")) { in state_store()
2961 if (cmd_match(buf, "none")) in recovery_start_store()
3659 if (cmd_match(buf, "none")) in resync_start_store()
3716 if (cmd_match(word, list[n])) in match_word()
4041 if (cmd_match(buf, "none")) { in metadata_store()
4112 if (cmd_match(page, "frozen")) in action_store()
4117 if (cmd_match(page, "idle") || cmd_match(page, "frozen")) { in action_store()
4125 else if (cmd_match(page, "resync")) in action_store()
4127 else if (cmd_match(page, "recover")) { in action_store()
4130 } else if (cmd_match(page, "reshape")) { in action_store()
4139 if (cmd_match(page, "check")) in action_store()
4141 else if (!cmd_match(page, "repair")) in action_store()