Lines Matching refs:new_part
847 struct nvram_partition *new_part; in nvram_create_partition() local
893 new_part = kzalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition()
894 if (!new_part) { in nvram_create_partition()
899 new_part->index = free_part->index; in nvram_create_partition()
900 new_part->header.signature = sig; in nvram_create_partition()
901 new_part->header.length = size; in nvram_create_partition()
902 memcpy(new_part->header.name, name, strnlen(name, sizeof(new_part->header.name))); in nvram_create_partition()
903 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_partition()
905 rc = nvram_write_header(new_part); in nvram_create_partition()
908 kfree(new_part); in nvram_create_partition()
911 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
930 for (tmp_index = new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()
941 return new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()