Lines Matching refs:FD_SECTOR_LEN
163 #define FD_SECTOR_LEN 512 macro
1618 rel_pos = fdctrl->data_pos % FD_SECTOR_LEN; in fdctrl_transfer_handler()
1621 if (len + rel_pos > FD_SECTOR_LEN) in fdctrl_transfer_handler()
1622 len = FD_SECTOR_LEN - rel_pos; in fdctrl_transfer_handler()
1627 fd_sector(cur_drv) * FD_SECTOR_LEN); in fdctrl_transfer_handler()
1629 len < FD_SECTOR_LEN || rel_pos != 0) { in fdctrl_transfer_handler()
1636 memset(fdctrl->fifo, 0, FD_SECTOR_LEN); in fdctrl_transfer_handler()
1673 uint8_t tmpbuf[FD_SECTOR_LEN]; in fdctrl_transfer_handler()
1691 rel_pos = fdctrl->data_pos % FD_SECTOR_LEN; in fdctrl_transfer_handler()
1731 pos %= FD_SECTOR_LEN; in fdctrl_read_data()
1749 memset(fdctrl->fifo, 0, FD_SECTOR_LEN); in fdctrl_read_data()
1821 memset(fdctrl->fifo, 0, FD_SECTOR_LEN); in fdctrl_format_sector()
2093 pos %= FD_SECTOR_LEN; in fdctrl_handle_drive_specification_command()
2230 pos %= FD_SECTOR_LEN; in fdctrl_write_data()
2244 if (pos == FD_SECTOR_LEN - 1 || in fdctrl_write_data()
2268 assert(fdctrl->data_pos < FD_SECTOR_LEN); in fdctrl_write_data()
2367 fdctrl->fifo = qemu_memalign(512, FD_SECTOR_LEN); in fdctrl_realize_common()
2368 memset(fdctrl->fifo, 0, FD_SECTOR_LEN); in fdctrl_realize_common()