Lines Matching refs:clevel
859 static struct md_personality *find_pers(int level, char *clevel) in find_pers() argument
865 if (strcmp(pers->name, clevel)==0) in find_pers()
1286 mddev->clevel[0] = 0; in super_90_validate()
1796 mddev->clevel[0] = 0; in super_1_validate()
3871 else if (mddev->clevel[0]) in level_show()
3872 ret = sprintf(page, "%s\n", mddev->clevel); in level_show()
3884 char clevel[16]; in level_store() local
3892 if (slen == 0 || slen >= sizeof(clevel)) in level_store()
3900 strncpy(mddev->clevel, buf, slen); in level_store()
3901 if (mddev->clevel[slen-1] == '\n') in level_store()
3903 mddev->clevel[slen] = 0; in level_store()
3933 strncpy(clevel, buf, slen); in level_store()
3934 if (clevel[slen-1] == '\n') in level_store()
3936 clevel[slen] = 0; in level_store()
3937 if (kstrtol(clevel, 10, &level)) in level_store()
3940 if (request_module("md-%s", clevel) != 0) in level_store()
3941 request_module("md-level-%s", clevel); in level_store()
3943 pers = find_pers(level, clevel); in level_store()
3946 pr_warn("md: personality %s not loaded\n", clevel); in level_store()
3961 mdname(mddev), clevel); in level_store()
3982 mdname(mddev), clevel); in level_store()
3996 strscpy(mddev->clevel, pers->name, sizeof(mddev->clevel)); in level_store()
5807 else if (mddev->clevel[0]) in md_run()
5808 request_module("md-%s", mddev->clevel); in md_run()
5868 pers = find_pers(mddev->level, mddev->clevel); in md_run()
5876 mddev->clevel); in md_run()
5885 strscpy(mddev->clevel, pers->name, sizeof(mddev->clevel)); in md_run()
6156 mddev->clevel[0] = 0; in md_clean()
7134 mddev->clevel[0] = 0; in md_set_array_info()