sects 236 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 243 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 246 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 261 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) sects 267 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 269 src/simh/sim_disk.c if ((sects == 1) && /* Single sector reads */ sects 279 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 282 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 296 src/simh/sim_disk.c uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 299 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 315 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); sects 318 src/simh/sim_disk.c if (*sectsread > sects) sects 319 src/simh/sim_disk.c *sectsread = sects; sects 327 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 330 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); sects 336 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 343 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 346 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sects 359 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) sects 366 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); sects 374 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 398 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 401 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sects 410 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects * ctx->sector_size); sects 413 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 424 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); sects 426 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sects 434 src/simh/sim_disk.c (sects < sspsts)) sects 441 src/simh/sim_disk.c ((sects + lba - tlba) & (sspsts - 1))) sects 448 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sects 456 src/simh/sim_disk.c if (*sectswritten > sects) sects 457 src/simh/sim_disk.c *sectswritten = sects; sects 464 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 467 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); sects 880 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 887 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 888 src/simh/sim_disk.c sects = sectors_per_buffer; sects 889 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 890 src/simh/sim_disk.c sects = total_sectors - lba; sects 891 src/simh/sim_disk.c for (sect = 0; sect < sects; sect++) { sects 896 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, init_buf, NULL, sects); sects 918 src/simh/sim_disk.c t_seccnt sects = sectors_per_buffer; sects 925 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { sects 926 src/simh/sim_disk.c sects = sectors_per_buffer; sects 927 src/simh/sim_disk.c if (lba + sects > total_sectors) sects 928 src/simh/sim_disk.c sects = total_sectors - lba; sects 929 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, verify_buf, NULL, sects); sects 931 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);