Lines Matching refs:fd_sector
240 static int fd_sector(fdrive_t *drv)
275 if (sector != fd_sector(drv)) {
1162 fd_sector(cur_drv));
1184 cur_drv->sect, fd_sector(cur_drv));
1579 cur_drv->track, cur_drv->sect, fd_sector(cur_drv),
1580 fd_sector(cur_drv) * FD_SECTOR_LEN);
1586 rc = blk_read(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
1589 if (bdrv_read(cur_drv->bs, fd_sector(cur_drv),
1594 fd_sector(cur_drv));
1630 rc = blk_write(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
1635 if (bdrv_write(cur_drv->bs, fd_sector(cur_drv),
1639 FLOPPY_ERROR("writing sector %d\n", fd_sector(cur_drv));
1664 rc = blk_write(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
1667 FLOPPY_ERROR("formatting sector %d\n", fd_sector(cur_drv));
1750 fd_sector(cur_drv));
1754 rc = blk_read(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
1757 if (bdrv_read(cur_drv->bs, fd_sector(cur_drv), fdctrl->fifo, 1) < 0)
1761 fd_sector(cur_drv));
1832 rc = blk_write(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
1834 FLOPPY_ERROR("formatting sector %d\n", fd_sector(cur_drv));
1843 bdrv_write(cur_drv->bs, fd_sector(cur_drv), fdctrl->fifo, 1) < 0) {
1844 FLOPPY_ERROR("formatting sector %d\n", fd_sector(cur_drv));
2264 blk_write(cur_drv, fd_sector(cur_drv), fdctrl->fifo, 1);
2266 bdrv_write(cur_drv->bs, fd_sector(cur_drv),