Lines Matching refs:newparts
126 struct cmdline_parts *newparts;
131 newparts = kzalloc(sizeof(struct cmdline_parts), GFP_KERNEL);
132 if (!newparts)
141 length = min_t(int, next - bdevdef, sizeof(newparts->name) - 1);
142 strscpy(newparts->name, bdevdef, length);
143 newparts->nr_subparts = 0;
145 next_subpart = &newparts->subpart;
160 newparts->nr_subparts++;
164 if (!newparts->subpart) {
170 *parts = newparts;
174 free_subpart(newparts);
175 kfree(newparts);