Lines Matching refs:buf_geom
141 struct geometry buf_geom;
162 int sector_size_bits = log2 (buf_geom.sector_size);
179 if (get_diskinfo (drive, &buf_geom))
186 sector_size_bits = log2 (buf_geom.sector_size);
189 slen = ((byte_offset + byte_len + buf_geom.sector_size - 1)
193 if ((buf_geom.sectors << sector_size_bits) > BUFFERLEN)
196 sectors_per_vtrack = buf_geom.sectors;
222 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom,
237 || biosdisk (BIOSDISK_READ, drive, &buf_geom,
258 (char *) BUFFERADDR + buf_geom.sector_size,
259 buf_geom.sector_size);
263 if (biosdisk (BIOSDISK_READ, drive, &buf_geom,
279 int length = buf_geom.sector_size - byte_offset;
286 while (length > buf_geom.sector_size)
288 (*disk_read_func) (sector_num++, 0, buf_geom.sector_size);
289 length -= buf_geom.sector_size;
350 if (biosdisk (BIOSDISK_READ, drive, &buf_geom, 0, 1, SCRATCHSEG))
364 if (biosdisk (BIOSDISK_WRITE, drive, &buf_geom,
371 if (sector - sector % buf_geom.sectors == buf_track)
948 /* Make sure that buf_geom is valid. */
951 if (get_diskinfo (current_drive, &buf_geom))
960 (buf_geom.total_sectors > MAXUINT) ? MAXUINT : buf_geom.total_sectors;