Lines Matching refs:cur
48 char *cur = cmdline, *tmp; in parse_crashkernel_mem() local
64 start = memparse(cur, &tmp); in parse_crashkernel_mem()
65 if (cur == tmp) { in parse_crashkernel_mem()
69 cur = tmp; in parse_crashkernel_mem()
70 if (*cur != '-') { in parse_crashkernel_mem()
74 cur++; in parse_crashkernel_mem()
77 if (*cur != ':') { in parse_crashkernel_mem()
78 end = memparse(cur, &tmp); in parse_crashkernel_mem()
79 if (cur == tmp) { in parse_crashkernel_mem()
83 cur = tmp; in parse_crashkernel_mem()
90 if (*cur != ':') { in parse_crashkernel_mem()
94 cur++; in parse_crashkernel_mem()
96 size = memparse(cur, &tmp); in parse_crashkernel_mem()
97 if (cur == tmp) { in parse_crashkernel_mem()
101 cur = tmp; in parse_crashkernel_mem()
112 } while (*cur++ == ','); in parse_crashkernel_mem()
115 while (*cur && *cur != ' ' && *cur != '@') in parse_crashkernel_mem()
116 cur++; in parse_crashkernel_mem()
117 if (*cur == '@') { in parse_crashkernel_mem()
118 cur++; in parse_crashkernel_mem()
119 *crash_base = memparse(cur, &tmp); in parse_crashkernel_mem()
120 if (cur == tmp) { in parse_crashkernel_mem()
142 char *cur = cmdline; in parse_crashkernel_simple() local
144 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
145 if (cmdline == cur) { in parse_crashkernel_simple()
150 if (*cur == '@') in parse_crashkernel_simple()
151 *crash_base = memparse(cur+1, &cur); in parse_crashkernel_simple()
152 else if (*cur != ' ' && *cur != '\0') { in parse_crashkernel_simple()
153 pr_warn("crashkernel: unrecognized char: %c\n", *cur); in parse_crashkernel_simple()
180 char *cur = cmdline; in parse_crashkernel_suffix() local
182 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
183 if (cmdline == cur) { in parse_crashkernel_suffix()
189 if (strncmp(cur, suffix, strlen(suffix))) { in parse_crashkernel_suffix()
190 pr_warn("crashkernel: unrecognized char: %c\n", *cur); in parse_crashkernel_suffix()
193 cur += strlen(suffix); in parse_crashkernel_suffix()
194 if (*cur != ' ' && *cur != '\0') { in parse_crashkernel_suffix()
195 pr_warn("crashkernel: unrecognized char: %c\n", *cur); in parse_crashkernel_suffix()