Lines Matching refs:free_part
990 struct nvram_partition *free_part = NULL; in nvram_create_partition() local
1020 free_part = part; in nvram_create_partition()
1026 free_part = part; in nvram_create_partition()
1039 new_part->index = free_part->index; in nvram_create_partition()
1051 list_add_tail(&new_part->partition, &free_part->partition); in nvram_create_partition()
1054 if (free_part->header.length > size) { in nvram_create_partition()
1055 free_part->index += size * NVRAM_BLOCK_LEN; in nvram_create_partition()
1056 free_part->header.length -= size; in nvram_create_partition()
1057 free_part->header.checksum = nvram_checksum(&free_part->header); in nvram_create_partition()
1058 rc = nvram_write_header(free_part); in nvram_create_partition()
1065 list_del(&free_part->partition); in nvram_create_partition()
1066 kfree(free_part); in nvram_create_partition()