lba 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) lba 248 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 250 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; lba 266 src/simh/sim_disk.c t_stat sim_disk_rdsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectsread, t_seccnt sects) lba 273 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 276 src/simh/sim_disk.c (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) { lba 284 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && lba 288 src/simh/sim_disk.c return _sim_disk_rdsect (uptr, lba, buf, sectsread, sects); lba 304 src/simh/sim_disk.c t_lba tlba = lba & ~(sspsts - 1); lba 305 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); lba 321 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); lba 323 src/simh/sim_disk.c *sectsread = sread - (lba - tlba); lba 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) lba 336 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, buf, sectsread, sects); lba 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) lba 350 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 352 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; lba 366 src/simh/sim_disk.c t_stat sim_disk_wrsect (UNIT *uptr, t_lba lba, uint8 *buf, t_seccnt *sectswritten, t_seccnt sects) lba 374 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); lba 387 src/simh/sim_disk.c if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) { lba 398 src/simh/sim_disk.c (unsigned long)((unsigned long)lba+(unsigned long)sect), lba 399 src/simh/sim_disk.c (int)((int)lba+(int)sect), (unsigned long)total_sectors, (int)total_sectors); lba 402 src/simh/sim_disk.c sim_disk_data_trace (uptr, buf+sect*ctx->sector_size, lba+sect, ctx->sector_size, "Found", TRUE, 1); lba 409 src/simh/sim_disk.c return _sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); lba 411 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && lba 433 src/simh/sim_disk.c t_lba tlba = lba & ~(sspsts - 1); lba 434 src/simh/sim_disk.c t_seccnt tsects = sects + (lba - tlba); lba 443 src/simh/sim_disk.c if ((lba & (sspsts - 1)) || lba 451 src/simh/sim_disk.c ((sects + lba - tlba) & (sspsts - 1))) lba 457 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf + (lba & (sspsts - 1)) * ctx->sector_size, lba 465 src/simh/sim_disk.c *sectswritten -= (lba - tlba); lba 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) lba 477 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, buf, sectswritten, sects); lba 897 src/simh/sim_disk.c t_lba lba, sect; lba 908 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { lba 910 src/simh/sim_disk.c if (lba + sects > total_sectors) lba 911 src/simh/sim_disk.c sects = total_sectors - lba; lba 915 src/simh/sim_disk.c *((uint32 *)&init_buf[sect*sector_size + offset]) = (uint32)(lba + sect); lba 917 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, lba, init_buf, NULL, sects); lba 927 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), lba 928 src/simh/sim_disk.c (unsigned long)((((float)lba)*100)/total_sectors)); lba 933 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); lba 940 src/simh/sim_disk.c t_lba lba, sect; lba 951 src/simh/sim_disk.c for (lba = 0; (lba < total_sectors) && (r == SCPE_OK); lba += sects) { lba 953 src/simh/sim_disk.c if (lba + sects > total_sectors) lba 954 src/simh/sim_disk.c sects = total_sectors - lba; lba 955 src/simh/sim_disk.c r = sim_disk_rdsect (uptr, lba, verify_buf, NULL, sects); lba 962 src/simh/sim_disk.c if (*((uint32 *)&verify_buf[sect*sector_size + offset]) != (uint32)(lba + sect)) { lba 973 src/simh/sim_disk.c (unsigned long)((unsigned long)lba+(unsigned long)sect), lba 974 src/simh/sim_disk.c (int)((int)lba+(int)sect), lba 979 src/simh/sim_disk.c sim_disk_data_trace (uptr, verify_buf+sect*sector_size, lba+sect, sector_size, lba 989 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), lba 990 src/simh/sim_disk.c (unsigned long)((((float)lba)*100)/total_sectors)); lba 995 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); lba 1177 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 1184 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);