Lines Matching refs:free_part
334 struct nvram_partition *free_part = NULL; in nvram_create_partition() local
364 free_part = part; in nvram_create_partition()
370 free_part = part; in nvram_create_partition()
383 new_part->index = free_part->index; in nvram_create_partition()
395 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
398 if (free_part->header.length > size) { in nvram_create_partition()
399 free_part->index += size * NVRAM_BLOCK_LEN; in nvram_create_partition()
400 free_part->header.length -= size; in nvram_create_partition()
401 free_part->header.checksum = nvram_checksum(&free_part->header); in nvram_create_partition()
402 rc = nvram_write_header(free_part); in nvram_create_partition()
409 list_del(&free_part->partition); in nvram_create_partition()
410 kfree(free_part); in nvram_create_partition()