Lines Matching refs:partitions
102 descriptor_t **partitions; in partition_get_assocs() local
117 partitions = (descriptor_t **)calloc(TOTAL_NUMPART + 1, in partition_get_assocs()
119 if (partitions == NULL) { in partition_get_assocs()
172 partitions[0] = cache_get_desc(DM_PARTITION, in partition_get_assocs()
176 cache_free_descriptors(partitions); in partition_get_assocs()
179 partitions[1] = NULL; in partition_get_assocs()
181 return (partitions); in partition_get_assocs()
211 partitions[pos] = cache_get_desc(DM_PARTITION, in partition_get_assocs()
214 cache_free_descriptors(partitions); in partition_get_assocs()
221 partitions[pos] = NULL; in partition_get_assocs()
224 return (partitions); in partition_get_assocs()
261 descriptor_t **partitions; in partition_get_descriptor_by_name() local
265 partitions = cache_get_descriptors(DM_PARTITION, errp); in partition_get_descriptor_by_name()
270 for (i = 0; partitions[i]; i++) { in partition_get_descriptor_by_name()
271 if (libdiskmgt_str_eq(name, partitions[i]->name)) { in partition_get_descriptor_by_name()
272 partition = partitions[i]; in partition_get_descriptor_by_name()
275 cache_free_descriptor(partitions[i]); in partition_get_descriptor_by_name()
278 free(partitions); in partition_get_descriptor_by_name()