Searched refs:disk_size (Results 1 – 2 of 2) sorted by relevance
69 sector_t disk_size; in cmdline_partition() local92 disk_size = get_capacity(state->bdev->bd_disk) << 9; in cmdline_partition()94 cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state); in cmdline_partition()
225 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, in cmdline_parts_set() argument240 if (from >= disk_size) in cmdline_parts_set()243 if (subpart->size > (disk_size - from)) in cmdline_parts_set()244 subpart->size = disk_size - from; in cmdline_parts_set()