Lines Matching refs:str

106 static int __init parse_crashkernel(const char *str)  in parse_crashkernel()  argument
111 if ( strchr(str, ':' ) ) in parse_crashkernel()
120 str = strpbrk(str, "@,<"); in parse_crashkernel()
125 ranges[idx].start = parse_size_and_unit(cur = str + !!idx, &str); in parse_crashkernel()
126 if ( cur == str ) in parse_crashkernel()
129 if ( *str != '-' ) in parse_crashkernel()
136 if ( *++str != ':' ) in parse_crashkernel()
138 ranges[idx].end = parse_size_and_unit(cur = str, &str); in parse_crashkernel()
139 if ( cur == str ) in parse_crashkernel()
151 if ( *str != ':' ) in parse_crashkernel()
158 ranges[idx].size = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
159 if ( cur == str ) in parse_crashkernel()
163 } while ( *str == ',' ); in parse_crashkernel()
168 kexec_crash_area.size = parse_size_and_unit(cur = str, &str); in parse_crashkernel()
169 if ( cur != str ) in parse_crashkernel()
171 if ( *str == '@' ) in parse_crashkernel()
172 kexec_crash_area.start = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
173 else if ( *str == '<' ) in parse_crashkernel()
174 kexec_crash_area_limit = parse_size_and_unit(cur = str + 1, &str); in parse_crashkernel()
175 else if ( !strncmp(str, ",below=", 7) ) in parse_crashkernel()
176 kexec_crash_area_limit = parse_size_and_unit(cur = str + 7, &str); in parse_crashkernel()
177 else if ( *str ) in parse_crashkernel()
179 printk(XENLOG_WARNING "crashkernel: '%s' ignored\n", str); in parse_crashkernel()
183 if ( cur && cur == str ) in parse_crashkernel()
203 static int __init parse_low_crashinfo(const char *str) in parse_low_crashinfo() argument
206 if ( !strlen(str) ) in parse_low_crashinfo()
209 else if ( !strcmp(str, "none" ) ) in parse_low_crashinfo()
211 else if ( !strcmp(str, "min" ) ) in parse_low_crashinfo()
213 else if ( !strcmp(str, "all" ) ) in parse_low_crashinfo()
217 printk("Unknown low_crashinfo parameter '%s'. Defaulting to min.\n", str); in parse_low_crashinfo()
232 static int __init parse_crashinfo_maxaddr(const char *str) in parse_crashinfo_maxaddr() argument
241 if ( (addr = parse_size_and_unit(str, &q)) ) in parse_crashinfo_maxaddr()