sects 240 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 248 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 251 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 266 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) sects 273 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 275 src/simh/sim_disk.c if ((sects == 1) && /* Single sector reads beyond the end of the disk */ sects 285 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 288 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 302 src/simh/sim_disk.c uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 305 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 321 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); sects 324 src/simh/sim_disk.c if (*sectsread > sects) sects 325 src/simh/sim_disk.c *sectsread = sects; sects 333 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 336 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 342 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 350 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 353 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 366 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) sects 374 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 382 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 409 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 412 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 420 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects * ctx->sector_size); sects 423 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 434 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 436 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 444 src/simh/sim_disk.c (sects < sspsts)) sects 451 src/simh/sim_disk.c ((sects + lba - tlba) & (sspsts - 1))) sects 458 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 466 src/simh/sim_disk.c if (*sectswritten > sects) sects 467 src/simh/sim_disk.c *sectswritten = sects; sects 474 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 477 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 901 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 908 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 909 src/simh/sim_disk.c sects = sectors_per_buffer; sects 910 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 911 src/simh/sim_disk.c sects = total_sectors - lba; sects 912 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 917 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, init_buf, NULL, sects); sects 944 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 951 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 952 src/simh/sim_disk.c sects = sectors_per_buffer; sects 953 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 954 src/simh/sim_disk.c sects = total_sectors - lba; sects 955 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, verify_buf, NULL, sects); sects 957 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);