Lines Matching refs:free_part
848 struct nvram_partition *free_part = NULL; in nvram_create_partition() local
880 free_part = part; in nvram_create_partition()
886 free_part = part; in nvram_create_partition()
899 new_part->index = free_part->index; in nvram_create_partition()
911 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
914 if (free_part->header.length > size) { in nvram_create_partition()
915 free_part->index += size * NVRAM_BLOCK_LEN; in nvram_create_partition()
916 free_part->header.length -= size; in nvram_create_partition()
917 free_part->header.checksum = nvram_checksum(&free_part->header); in nvram_create_partition()
918 rc = nvram_write_header(free_part); in nvram_create_partition()
925 list_del(&free_part->partition); in nvram_create_partition()
926 kfree(free_part); in nvram_create_partition()