sects 238 src/simh/sim_disk.c static t_stat _sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) sects 246 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 249 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 264 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) sects 271 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 273 src/simh/sim_disk.c if ((sects == 1) && /* Single sector reads beyond the end of the disk */ sects 283 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 286 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 300 src/simh/sim_disk.c uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 303 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 319 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); sects 322 src/simh/sim_disk.c if (*sectsread > sects) sects 323 src/simh/sim_disk.c *sectsread = sects; sects 331 src/simh/sim_disk.c t_stat sim_disk_rdsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects, DISK_PCALLBACK callback) sects 334 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 340 src/simh/sim_disk.c static t_stat _sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) sects 348 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 351 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 364 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) sects 372 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 380 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 407 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 410 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 418 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects * ctx->sector_size); sects 421 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 432 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 434 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 442 src/simh/sim_disk.c (sects < sspsts)) sects 449 src/simh/sim_disk.c ((sects + lba - tlba) & (sspsts - 1))) sects 456 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 472 src/simh/sim_disk.c t_stat sim_disk_wrsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects, DISK_PCALLBACK callback) sects 475 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 899 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 906 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 907 src/simh/sim_disk.c sects = sectors_per_buffer; sects 908 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 909 src/simh/sim_disk.c sects = total_sectors - lba; sects 910 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 915 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, init_buf, NULL, sects); sects 942 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 949 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 950 src/simh/sim_disk.c sects = sectors_per_buffer; sects 951 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 952 src/simh/sim_disk.c sects = total_sectors - lba; sects 953 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, verify_buf, NULL, sects); sects 955 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 74 src/simh/sim_disk.h t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects); sects 75 src/simh/sim_disk.h t_stat sim_disk_rdsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects, DISK_PCALLBACK callback); sects 76 src/simh/sim_disk.h t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects); sects 77 src/simh/sim_disk.h t_stat sim_disk_wrsect_a (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects, DISK_PCALLBACK callback);