Lines Matching refs:geometry
79 device_geometry geometry;
166 info.geometry.read_only = true;
182 bool readOnly = (initInfo->use_geometry && initInfo->geometry.read_only);
199 // If we shall use the supplied geometry, we enlarge the file, if
200 // necessary. Otherwise we fill in the geometry according to the size of the file.
204 // use the supplied geometry
205 info.geometry = initInfo->geometry;
206 size = (off_t)info.geometry.bytes_per_sector
207 * info.geometry.sectors_per_track
208 * info.geometry.cylinder_count
209 * info.geometry.head_count;
218 // fill in the geometry
229 info.geometry.bytes_per_sector = blockSize;
230 info.geometry.sectors_per_track = 1;
231 info.geometry.cylinder_count = blocks / heads;
232 info.geometry.head_count = heads;
233 info.geometry.device_type = B_DISK; // TODO: Add a new constant.
234 info.geometry.removable = false;
235 info.geometry.read_only = false;
236 info.geometry.write_once = false;
237 size = (off_t)info.geometry.bytes_per_sector
238 * info.geometry.sectors_per_track
239 * info.geometry.cylinder_count
240 * info.geometry.head_count;
636 *(device_geometry *)arg = info.geometry;
647 dg->device_type = info.geometry.device_type;
648 dg->removable = info.geometry.removable;
649 dg->read_only = info.geometry.read_only;
650 dg->write_once = info.geometry.write_once;
733 driveInfo->geometry = info.geometry;