Lines Matching defs:last_sect
181 uint8_t last_sect; /* Nb sector per track */
229 drv->last_sect = 0;
234 uint8_t last_sect, uint8_t num_sides)
236 return (((track * num_sides) + head) * last_sect) + sect - 1; /* sect >= 1 */
242 return fd_sector_calc(drv->head, drv->track, drv->sect, drv->last_sect, NUM_SIDES(drv));
263 drv->max_track, drv->last_sect);
266 if (sect > drv->last_sect || sect < 1) {
270 drv->max_track, drv->last_sect);
273 sector = fd_sector_calc(head, track, sect, drv->last_sect, NUM_SIDES(drv));
279 head, track, sect, 1, drv->max_track, drv->last_sect);
308 uint8_t last_sect; /**< Number of sectors. */
422 int nb_heads, max_track, last_sect, ro;
428 bdrv_get_geometry_hint(drv->bs, &nb_heads, &max_track, &last_sect);
434 nb_heads = max_track = last_sect = 0;
436 if (nb_heads != 0 && max_track != 0 && last_sect != 0) {
438 nb_heads - 1, max_track, last_sect);
457 parse->last_sect;
475 last_sect = parse->last_sect;
481 nb_heads, max_track, last_sect, ro ? "ro" : "rw");
483 nb_heads, max_track, last_sect, ro ? "ro" : "rw"));
491 drv->last_sect = last_sect;
495 drv->last_sect = 0;
1163 /* XXX: cur_drv->sect >= cur_drv->last_sect should be an
1165 if (cur_drv->sect >= cur_drv->last_sect ||
1239 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, NUM_SIDES(cur_drv)));
1321 (cur_drv->last_sect - ks + 1), fdctrl->data_len);
1368 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, NUM_SIDES(cur_drv)));
1430 (cur_drv->last_sect + 1), fdctrl->data_len);
1800 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, NUM_SIDES(cur_drv)));
1848 if (cur_drv->sect == cur_drv->last_sect) {
1887 fdctrl->fifo[6] = cur_drv->last_sect;
1922 cur_drv->last_sect = fdctrl->fifo[9];
1950 fdctrl->fifo[8] = cur_drv->last_sect;
1998 if (cur_drv->last_sect != ns || fdctrl->fifo[2] != 2)
2003 cur_drv->last_sect = ns;
2312 if (cur_drv->last_sect != 0) {
2313 cur_drv->sect = (cur_drv->sect % cur_drv->last_sect) + 1;
2512 SSMR3GetU8(pSSM, &d->last_sect);