sector_size 93 src/simh/sim_disk.c uint32 sector_size; /* Disk Sector Size (of the pseudo disk) */ sector_size 250 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; sector_size 251 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sector_size 261 src/simh/sim_disk.c *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); sector_size 276 src/simh/sim_disk.c (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) { sector_size 277 src/simh/sim_disk.c (void)memset (buf, '\0', ctx->sector_size); /* are bad block management efforts - zero buffer */ sector_size 283 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) || /* Sector Aligned & whole sector transfers */ sector_size 284 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && sector_size 285 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sector_size 302 src/simh/sim_disk.c uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sector_size 303 src/simh/sim_disk.c t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */ sector_size 321 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); sector_size 352 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; sector_size 353 src/simh/sim_disk.c tbc = sects * ctx->sector_size; sector_size 361 src/simh/sim_disk.c *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); sector_size 379 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(ctx->sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); sector_size 386 src/simh/sim_disk.c for (offset = 0; offset < ctx->sector_size; offset += sizeof(uint32)) { sector_size 387 src/simh/sim_disk.c if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) { sector_size 402 src/simh/sim_disk.c sim_disk_data_trace (uptr, buf+sect*ctx->sector_size, lba+sect, ctx->sector_size, "Found", TRUE, 1); sector_size 410 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) || /* Sector Aligned & whole sector transfers */ sector_size 411 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && sector_size 412 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { sector_size 420 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects * ctx->sector_size); sector_size 423 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sector_size 432 src/simh/sim_disk.c t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */ sector_size 436 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); sector_size 457 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf + (lba & (sspsts - 1)) * ctx->sector_size, sector_size 458 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); sector_size 750 src/simh/sim_disk.c t_stat sim_disk_attach (UNIT *uptr, const char *cptr, size_t sector_size, size_t xfer_element_size, t_bool dontautosize, sector_size 758 src/simh/sim_disk.c t_stat (*storage_function)(FILE *file, uint32 *sector_size, uint32 *removable) = NULL; sector_size 817 src/simh/sim_disk.c ctx->sector_size = (uint32)sector_size; /* save sector_size */ sector_size 825 src/simh/sim_disk.c ctx->storage_sector_size = (uint32)sector_size; /* Default */ sector_size 880 src/simh/sim_disk.c uint8 *secbuf = (uint8 *)calloc (1, ctx->sector_size); /* alloc temp sector buf */ sector_size 886 src/simh/sim_disk.c ctx->sector_size)/ctx->sector_size), secbuf, NULL, 1); /* Write Last Sector */ sector_size 899 src/simh/sim_disk.c t_seccnt sectors_per_buffer = (t_seccnt)((1024*1024)/sector_size); sector_size 900 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); sector_size 914 src/simh/sim_disk.c for (offset = 0; offset < sector_size; offset += sizeof(uint32)) sector_size 915 src/simh/sim_disk.c *((uint32 *)&init_buf[sect*sector_size + offset]) = (uint32)(lba + sect); sector_size 927 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), sector_size 933 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); sector_size 942 src/simh/sim_disk.c t_seccnt sectors_per_buffer = (t_seccnt)((1024*1024)/sector_size); sector_size 943 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); sector_size 961 src/simh/sim_disk.c for (offset = 0; offset < sector_size; offset += sizeof(uint32)) { sector_size 962 src/simh/sim_disk.c if (*((uint32 *)&verify_buf[sect*sector_size + offset]) != (uint32)(lba + sect)) { sector_size 979 src/simh/sim_disk.c sim_disk_data_trace (uptr, verify_buf+sect*sector_size, lba+sect, sector_size, sector_size 989 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000), sector_size 995 src/simh/sim_disk.c (unsigned long)((((float)lba)*sector_size)/1000000)); sector_size 70 src/simh/sim_disk.h t_stat sim_disk_attach (UNIT *uptr, const char *cptr, size_t sector_size, size_t xfer_element_size, t_bool dontautosize,