sector_size        91 src/simh/sim_disk.c     uint32              sector_size;        /* Disk Sector Size (of the pseudo disk) */
sector_size       248 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size;
sector_size       249 src/simh/sim_disk.c tbc = sects * ctx->sector_size;
sector_size       259 src/simh/sim_disk.c         *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size);
sector_size       274 src/simh/sim_disk.c     (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) {
sector_size       275 src/simh/sim_disk.c     (void)memset (buf, '\0', ctx->sector_size);        /* are bad block management efforts - zero buffer */
sector_size       281 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) ||   /* Sector Aligned & whole sector transfers */
sector_size       282 src/simh/sim_disk.c     ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) &&
sector_size       283 src/simh/sim_disk.c      (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) {
sector_size       300 src/simh/sim_disk.c     uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size);
sector_size       301 src/simh/sim_disk.c     t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */
sector_size       319 src/simh/sim_disk.c         memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size);
sector_size       350 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size;
sector_size       351 src/simh/sim_disk.c tbc = sects * ctx->sector_size;
sector_size       359 src/simh/sim_disk.c         *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size);
sector_size       377 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       384 src/simh/sim_disk.c         for (offset = 0; offset < ctx->sector_size; offset += sizeof(uint32)) {
sector_size       385 src/simh/sim_disk.c             if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) {
sector_size       400 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       408 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) ||   /* Sector Aligned & whole sector transfers */
sector_size       409 src/simh/sim_disk.c     ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) &&
sector_size       410 src/simh/sim_disk.c      (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) {
sector_size       418 src/simh/sim_disk.c         tbuf = (uint8*) malloc (sects * ctx->sector_size);
sector_size       421 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       430 src/simh/sim_disk.c     t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */
sector_size       434 src/simh/sim_disk.c     tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size);
sector_size       455 src/simh/sim_disk.c     sim_buf_copy_swapped (tbuf + (lba & (sspsts - 1)) * ctx->sector_size,
sector_size       456 src/simh/sim_disk.c                           buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size);
sector_size       748 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       756 src/simh/sim_disk.c t_stat (*storage_function)(FILE *file, uint32 *sector_size, uint32 *removable) = NULL;
sector_size       815 src/simh/sim_disk.c ctx->sector_size = (uint32)sector_size;                 /* save sector_size */
sector_size       823 src/simh/sim_disk.c ctx->storage_sector_size = (uint32)sector_size;         /* Default */
sector_size       878 src/simh/sim_disk.c     uint8 *secbuf = (uint8 *)calloc (1, ctx->sector_size);       /* alloc temp sector buf */
sector_size       884 src/simh/sim_disk.c                               ctx->sector_size)/ctx->sector_size), secbuf, NULL, 1); /* Write Last Sector */
sector_size       897 src/simh/sim_disk.c         t_seccnt sectors_per_buffer = (t_seccnt)((1024*1024)/sector_size);
sector_size       898 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       912 src/simh/sim_disk.c                 for (offset = 0; offset < sector_size; offset += sizeof(uint32))
sector_size       913 src/simh/sim_disk.c                     *((uint32 *)&init_buf[sect*sector_size + offset]) = (uint32)(lba + sect);
sector_size       925 src/simh/sim_disk.c                             (unsigned long)((((float)lba)*sector_size)/1000000),
sector_size       931 src/simh/sim_disk.c                         (unsigned long)((((float)lba)*sector_size)/1000000));
sector_size       940 src/simh/sim_disk.c     t_seccnt sectors_per_buffer = (t_seccnt)((1024*1024)/sector_size);
sector_size       941 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       959 src/simh/sim_disk.c                 for (offset = 0; offset < sector_size; offset += sizeof(uint32)) {
sector_size       960 src/simh/sim_disk.c                     if (*((uint32 *)&verify_buf[sect*sector_size + offset]) != (uint32)(lba + sect)) {
sector_size       977 src/simh/sim_disk.c                     sim_disk_data_trace (uptr, verify_buf+sect*sector_size, lba+sect, sector_size,
sector_size       987 src/simh/sim_disk.c                         (unsigned long)((((float)lba)*sector_size)/1000000),
sector_size       993 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,