Searched refs:newpart (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | gpt.c | 192 struct disk_part *newpart; in allocate_disk_part() local 193 newpart = calloc(1, sizeof(struct disk_part)); in allocate_disk_part() 194 if (!newpart) in allocate_disk_part() 197 newpart->gpt_part_info.start = info->start; in allocate_disk_part() 198 newpart->gpt_part_info.size = info->size; in allocate_disk_part() 199 newpart->gpt_part_info.blksz = info->blksz; in allocate_disk_part() 200 strncpy((char *)newpart->gpt_part_info.name, (const char *)info->name, in allocate_disk_part() 202 newpart->gpt_part_info.name[PART_NAME_LEN - 1] = '\0'; in allocate_disk_part() 203 strncpy((char *)newpart->gpt_part_info.type, (const char *)info->type, in allocate_disk_part() 205 newpart->gpt_part_info.type[PART_TYPE_LEN - 1] = '\0'; in allocate_disk_part() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/parsers/ |
| H A D | cmdlinepart.c | 82 static struct mtd_partition * newpart(char *s, in newpart() function 169 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart() 276 parts = newpart(p + 1, /* cmdline */ in mtdpart_setup_real()
|