lba 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) lba 246 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 248 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; lba 264 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) lba 271 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 274 src/simh/sim_disk.c (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) { lba 282 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && lba 286 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); lba 302 src/simh/sim_disk.c t_lba tlba = lba & ~(sspsts - 1); lba 303 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); lba 319 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); lba 321 src/simh/sim_disk.c *sectsread = sread - (lba - tlba); lba 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) lba 334 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); lba 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) lba 348 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 350 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; lba 364 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) lba 372 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 385 src/simh/sim_disk.c if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) { lba 396 src/simh/sim_disk.c (unsigned long)((unsigned long)lba+(unsigned long)sect), lba 397 src/simh/sim_disk.c (int)((int)lba+(int)sect), (unsigned long)total_sectors, (int)total_sectors); lba 400 src/simh/sim_disk.c sim_disk_data_trace (uptr, buf+sect*ctx->sector_size, lba+sect, ctx->sector_size, "Found", TRUE, 1); lba 407 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); lba 409 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && lba 431 src/simh/sim_disk.c t_lba tlba = lba & ~(sspsts - 1); lba 432 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); lba 441 src/simh/sim_disk.c if ((lba & (sspsts - 1)) || lba 449 src/simh/sim_disk.c ((sects + lba - tlba) & (sspsts - 1))) lba 455 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf + (lba & (sspsts - 1)) * ctx->sector_size, lba 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) lba 475 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); lba 895 src/simh/sim_disk.c t_lba lba, sect; lba 906 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { lba 908 src/simh/sim_disk.c if (lba + sects > total_sectors) lba 909 src/simh/sim_disk.c sects = total_sectors - lba; lba 913 src/simh/sim_disk.c *((uint32 *)&init_buf[sect*sector_size + offset]) = (uint32)(lba + sect); lba 915 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, init_buf, NULL, sects); lba 925 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), lba 926 src/simh/sim_disk.c (unsigned long)((((float)lba)*100)/total_sectors)); lba 931 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); lba 938 src/simh/sim_disk.c t_lba lba, sect; lba 949 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { lba 951 src/simh/sim_disk.c if (lba + sects > total_sectors) lba 952 src/simh/sim_disk.c sects = total_sectors - lba; lba 953 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, verify_buf, NULL, sects); lba 960 src/simh/sim_disk.c if (*((uint32 *)&verify_buf[sect*sector_size + offset]) != (uint32)(lba + sect)) { lba 971 src/simh/sim_disk.c (unsigned long)((unsigned long)lba+(unsigned long)sect), lba 972 src/simh/sim_disk.c (int)((int)lba+(int)sect), lba 977 src/simh/sim_disk.c sim_disk_data_trace (uptr, verify_buf+sect*sector_size, lba+sect, sector_size, lba 987 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), lba 988 src/simh/sim_disk.c (unsigned long)((((float)lba)*100)/total_sectors)); lba 993 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); lba 1175 src/simh/sim_disk.c void sim_disk_data_trace(UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason) lba 1182 src/simh/sim_disk.c (void)sprintf (pos, "lbn: %08X ", (unsigned int)lba); lba 74 src/simh/sim_disk.h t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects); lba 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); lba 76 src/simh/sim_disk.h t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects); lba 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); lba 92 src/simh/sim_disk.h void sim_disk_data_trace (UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason);