Lines Matching refs:FD_SECTOR_LEN
105 #define FD_SECTOR_LEN 512
445 nb_sectors = size2 / FD_SECTOR_LEN;
729 uint8_t fifo[FD_SECTOR_LEN];
1477 rc = drv->pDrvBlock->pfnWrite(drv->pDrvBlock, sector_num * FD_SECTOR_LEN,
1478 buf, nb_sectors * FD_SECTOR_LEN);
1493 rc = drv->pDrvBlock->pfnRead(drv->pDrvBlock, sector_num * FD_SECTOR_LEN,
1494 buf, nb_sectors * FD_SECTOR_LEN);
1571 rel_pos = fdctrl->data_pos % FD_SECTOR_LEN;
1574 if (len + rel_pos > FD_SECTOR_LEN)
1575 len = FD_SECTOR_LEN - rel_pos;
1580 fd_sector(cur_drv) * FD_SECTOR_LEN);
1583 len < FD_SECTOR_LEN || rel_pos != 0)) {
1596 memset(fdctrl->fifo, 0, FD_SECTOR_LEN);
1661 memset(fdctrl->fifo, filler, FD_SECTOR_LEN);
1679 uint8_t tmpbuf[FD_SECTOR_LEN];
1703 rel_pos = fdctrl->data_pos % FD_SECTOR_LEN;
1745 pos %= FD_SECTOR_LEN;
1763 memset(fdctrl->fifo, 0, FD_SECTOR_LEN);
1829 memset(fdctrl->fifo, 0, FD_SECTOR_LEN);
2259 pos %= FD_SECTOR_LEN;
2261 if (pos == FD_SECTOR_LEN - 1 ||
2461 AssertMsgReturn(sizeof(pThis->fifo) == FD_SECTOR_LEN,
2482 SSMR3GetMem(pSSM, &pThis->fifo, FD_SECTOR_LEN);