Lines Matching refs:new_subpart
45 struct cmdline_subpart *new_subpart; in parse_subpart() local
49 new_subpart = kzalloc(sizeof(struct cmdline_subpart), GFP_KERNEL); in parse_subpart()
50 if (!new_subpart) in parse_subpart()
54 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
57 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart()
58 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart()
67 new_subpart->from = (sector_t)memparse(partdef, &partdef); in parse_subpart()
69 new_subpart->from = (sector_t)(~0ULL); in parse_subpart()
83 sizeof(new_subpart->name) - 1); in parse_subpart()
84 strncpy(new_subpart->name, partdef, length); in parse_subpart()
85 new_subpart->name[length] = '\0'; in parse_subpart()
89 new_subpart->name[0] = '\0'; in parse_subpart()
91 new_subpart->flags = 0; in parse_subpart()
94 new_subpart->flags |= PF_RDONLY; in parse_subpart()
99 new_subpart->flags |= PF_POWERUP_LOCK; in parse_subpart()
103 *subpart = new_subpart; in parse_subpart()
106 kfree(new_subpart); in parse_subpart()