Lines Matching defs:map
75 maxofN(struct dk_gpt *map)
81 for (i = 0; i < map->efi_nparts - 1; i++) {
82 start[0] = map->efi_parts[i].p_start;
83 size[0] = map->efi_parts[i].p_size;
86 start[1] = map->efi_parts[i+1].p_start;
87 size[1] = map->efi_parts[i+1].p_size;
90 if (map->efi_parts[i].p_tag == V_BACKUP) {
93 if (map->efi_parts[i+1].p_tag == V_BACKUP) {
112 * partition in the current partition map.
327 * We create a new current partition map instead.
405 * This routine creates a new partition map and sets it current. If there
406 * was a current map, the new map starts out identical to it. Otherwise
407 * the new map starts out all zeroes.
420 * Get space for for the new map and link it into the list
435 * If there was a current map, copy its values.
438 struct dk_gpt *map;
444 map = zalloc(size);
445 (void) memcpy(map, cur_parts->etoc, size);
446 pptr->etoc = map;
472 * This routine deletes a partition map from the list of maps for
481 * If there isn't a current map, it's an error.
488 * Remove the map from the list.