Lines Matching defs:total_capacity
229 static void compute_chs_values(diskaddr_t total_capacity,
2239 compute_chs_values(diskaddr_t total_capacity, diskaddr_t usable_capacity,
2244 if (total_capacity < 160) {
2247 *pcylp = total_capacity;
2250 } else if (total_capacity <= 0x1000) {
2253 *nsectp = total_capacity / (80 * 2);
2284 if (total_capacity <= 0x200000) {
2287 } else if (total_capacity <= 0x01000000) {
2294 *nsectp = ((total_capacity +
2302 if (usable_capacity < total_capacity)
2305 *pcylp = total_capacity / ((*nheadp) * (*nsectp));