Lines Matching refs:new_part
989 struct nvram_partition *new_part; in nvram_create_partition() local
1033 new_part = kzalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition()
1034 if (!new_part) { in nvram_create_partition()
1039 new_part->index = free_part->index; in nvram_create_partition()
1040 new_part->header.signature = sig; in nvram_create_partition()
1041 new_part->header.length = size; in nvram_create_partition()
1042 memcpy(new_part->header.name, name, strnlen(name, sizeof(new_part->header.name))); in nvram_create_partition()
1043 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_partition()
1045 rc = nvram_write_header(new_part); in nvram_create_partition()
1048 kfree(new_part); in nvram_create_partition()
1051 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
1070 for (tmp_index = new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()
1081 return new_part->index + NVRAM_HEADER_LEN; in nvram_create_partition()