Home
last modified time | relevance | path

Searched refs:new_part (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/arch/powerpc/kernel/
Dnvram_64.c333 struct nvram_partition *new_part; in nvram_create_partition() local
377 new_part = kmalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition()
378 if (!new_part) { in nvram_create_partition()
383 new_part->index = free_part->index; in nvram_create_partition()
384 new_part->header.signature = sig; in nvram_create_partition()
385 new_part->header.length = size; in nvram_create_partition()
386 strncpy(new_part->header.name, name, 12); in nvram_create_partition()
387 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_partition()
389 rc = nvram_write_header(new_part); in nvram_create_partition()
395 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
[all …]