ctx 3508 src/dps8/dps8_cpu.c int core_read (cpu_state_t * cpup, word24 addr, word36 *data, const char * ctx) ctx 3518 src/dps8/dps8_cpu.c addr, cpu.PPR.PSR, cpu.PPR.IC, ctx); ctx 3526 src/dps8/dps8_cpu.c (long long unsigned int)M [addr], ctx); ctx 3545 src/dps8/dps8_cpu.c addr, * data, ctx); ctx 3552 src/dps8/dps8_cpu.c int core_read_lock (cpu_state_t * cpup, word24 addr, word36 *data, UNUSED const char * ctx) ctx 3573 src/dps8/dps8_cpu.c int core_write (cpu_state_t * cpup, word24 addr, word36 data, const char * ctx) ctx 3603 src/dps8/dps8_cpu.c (long long unsigned int)addr, (unsigned long long int)M [addr], ctx); ctx 3612 src/dps8/dps8_cpu.c addr, data, ctx); ctx 3619 src/dps8/dps8_cpu.c int core_write_unlock (cpu_state_t * cpup, word24 addr, word36 data, UNUSED const char * ctx) ctx 3653 src/dps8/dps8_cpu.c int core_write_zone (cpu_state_t * cpup, word24 addr, word36 data, const char * ctx) ctx 3673 src/dps8/dps8_cpu.c core_read_lock(cpup, addr, &v, ctx); ctx 3675 src/dps8/dps8_cpu.c core_write_unlock(cpup, addr, v, ctx); ctx 3685 src/dps8/dps8_cpu.c (unsigned long long int)mapAddr, (unsigned long long int)M [mapAddr], ctx); ctx 3694 src/dps8/dps8_cpu.c mapAddr, data, ctx); ctx 3701 src/dps8/dps8_cpu.c int core_read2 (cpu_state_t * cpup, word24 addr, word36 *even, word36 *odd, const char * ctx) ctx 3712 src/dps8/dps8_cpu.c "core_read2 (%s)\n", addr, ctx); ctx 3722 src/dps8/dps8_cpu.c addr, cpu.PPR.PSR, cpu.PPR.IC, ctx); ctx 3730 src/dps8/dps8_cpu.c (unsigned long long int)addr, (unsigned long long int)M [addr], ctx); ctx 3749 src/dps8/dps8_cpu.c addr - 1, * even, ctx); ctx 3759 src/dps8/dps8_cpu.c addr, cpu.PPR.PSR, cpu.PPR.IC, ctx); ctx 3767 src/dps8/dps8_cpu.c (unsigned long long int)addr, (unsigned long long int)M [addr], ctx); ctx 3785 src/dps8/dps8_cpu.c addr, * odd, ctx); ctx 3795 src/dps8/dps8_cpu.c int core_write2 (cpu_state_t * cpup, word24 addr, word36 even, word36 odd, const char * ctx) { ctx 3800 src/dps8/dps8_cpu.c addr, ctx); ctx 3819 src/dps8/dps8_cpu.c (unsigned long long int)addr, (unsigned long long int)even, ctx); ctx 3833 src/dps8/dps8_cpu.c (long long unsigned int)even, ctx); ctx 3842 src/dps8/dps8_cpu.c (long long unsigned int)addr, (long long unsigned int)odd, ctx); ctx 3858 src/dps8/dps8_cpu.c sim_debug (DBG_CORE, & cpu_dev, "core_write2 %08o %012"PRIo64" (%s)\n", addr, odd, ctx); ctx 2012 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2025 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2051 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2078 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2092 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2118 src/dps8/dps8_cpu.h int core_read (cpu_state_t * cpup, word24 addr, word36 *data, const char * ctx); ctx 2119 src/dps8/dps8_cpu.h int core_write (cpu_state_t * cpup, word24 addr, word36 data, const char * ctx); ctx 2120 src/dps8/dps8_cpu.h int core_write_zone (cpu_state_t * cpup, word24 addr, word36 data, const char * ctx); ctx 2121 src/dps8/dps8_cpu.h int core_read2 (cpu_state_t * cpup, word24 addr, word36 *even, word36 *odd, const char * ctx); ctx 2122 src/dps8/dps8_cpu.h int core_write2 (cpu_state_t * cpup, word24 addr, word36 even, word36 odd, const char * ctx); ctx 2186 src/dps8/dps8_cpu.h int core_read_lock (cpu_state_t * cpup, word24 addr, word36 *data, const char * ctx); ctx 2187 src/dps8/dps8_cpu.h int core_write_unlock (cpu_state_t * cpup, word24 addr, word36 data, const char * ctx); ctx 2357 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2361 src/dps8/dps8_cpu.h core_read (cpup, addr + i, data + i, ctx); ctx 2367 src/dps8/dps8_cpu.h UNUSED const char * ctx) ctx 2371 src/dps8/dps8_cpu.h core_write (cpup, addr + i, data [i], ctx); ctx 60 src/dps8/dps8_dia.c static inline void fnp_core_read (word24 addr, word36 *data, UNUSED const char * ctx) ctx 381 src/dps8/dps8_dia.c static inline void fnp_core_write (word24 addr, word36 data, UNUSED const char * ctx) ctx 57 src/dps8/dps8_fnp2_iomcmd.c static inline void fnp_core_read_n (word24 addr, word36 *data, uint n, UNUSED const char * ctx) ctx 812 src/dps8/dps8_iom.c void iom_core_read (UNUSED uint iom_unit_idx, word24 addr, word36 *data, UNUSED const char * ctx) ctx 825 src/dps8/dps8_iom.c void iom_core_read2 (UNUSED uint iom_unit_idx, word24 addr, word36 *even, word36 *odd, UNUSED const char * ctx) ctx 844 src/dps8/dps8_iom.c void iom_core_write (uint iom_unit_idx, word24 addr, word36 data, UNUSED const char * ctx) ctx 856 src/dps8/dps8_iom.c void iom_core_write2 (UNUSED uint iom_unit_idx, word24 addr, word36 even, word36 odd, UNUSED const char * ctx) ctx 874 src/dps8/dps8_iom.c void iom_core_read_lock (UNUSED uint iom_unit_idx, word24 addr, word36 *data, UNUSED const char * ctx) ctx 888 src/dps8/dps8_iom.c void iom_core_write_unlock (UNUSED uint iom_unit_idx, word24 addr, word36 data, UNUSED const char * ctx) ctx 415 src/dps8/dps8_iom.h void iom_core_read (uint iom_unit_idx, word24 addr, word36 *data, UNUSED const char * ctx); ctx 416 src/dps8/dps8_iom.h void iom_core_read2 (uint iom_unit_idx, word24 addr, word36 *even, word36 *odd, UNUSED const char * ctx); ctx 417 src/dps8/dps8_iom.h void iom_core_write (uint iom_unit_idx, word24 addr, word36 data, UNUSED const char * ctx); ctx 418 src/dps8/dps8_iom.h void iom_core_write2 (uint iom_unit_idx, word24 addr, word36 even, word36 odd, UNUSED const char * ctx); ctx 419 src/dps8/dps8_iom.h void iom_core_read_lock (uint iom_unit_idx, word24 addr, word36 *data, UNUSED const char * ctx); ctx 420 src/dps8/dps8_iom.h void iom_core_write_unlock (uint iom_unit_idx, word24 addr, word36 data, UNUSED const char * ctx); ctx 1049 src/dps8/dps8_scu.c static void dump_intr_regs (char * ctx, uint scu_unit_idx) ctx 1057 src/dps8/dps8_scu.c ctx, up -> exec_intr_mask [0], up -> mask_enable [0], ctx 1061 src/dps8/dps8_scu.c ctx, up -> exec_intr_mask [1], up -> mask_enable [1], ctx 1064 src/dps8/dps8_scu.c ctx 1072 src/dps8/dps8_scu.c ctx 1086 src/dps8/dps8_scu.c ctx 1090 src/dps8/dps8_scu.c ctx 1093 src/dps8/dps8_scu.c ctx 1101 src/dps8/dps8_scu.c ctx 62 src/dps8/hdbg.c char ctx[16]; ctx 179 src/dps8/hdbg.c strncpy (hevents[p].ctx, ctx, 15); \ ctx 180 src/dps8/hdbg.c hevents[p].ctx[15] = 0; \ ctx 189 src/dps8/hdbg.c void hdbgTrace (const char * ctx) { ctx 200 src/dps8/hdbg.c void hdbgMRead (word24 addr, word36 data, const char * ctx) { ctx 208 src/dps8/hdbg.c void hdbgMWrite (word24 addr, word36 data, const char * ctx) { ctx 216 src/dps8/hdbg.c void hdbgAPURead (word15 segno, word18 offset, word24 final, word36 data, const char * ctx) { ctx 226 src/dps8/hdbg.c void hdbgAPUWrite (word15 segno, word18 offset, word24 final, word36 data, const char * ctx) { ctx 236 src/dps8/hdbg.c void hdbgFault (_fault faultNumber, _fault_subtype subFault, const char * faultMsg, const char * ctx) { ctx 246 src/dps8/hdbg.c void hdbgIntrSet (uint inum, uint cpuUnitIdx, uint scuUnitIdx, const char * ctx) { ctx 255 src/dps8/hdbg.c void hdbgIntr (uint intr_pair_addr, const char * ctx) { ctx 260 src/dps8/hdbg.c strncpy (hevents[p].ctx, ctx, 15); ctx 261 src/dps8/hdbg.c hevents[p].ctx[15] = 0; ctx 266 src/dps8/hdbg.c void hdbgRegR (enum hregs_t type, word36 data, const char * ctx) { ctx 274 src/dps8/hdbg.c void hdbgRegW (enum hregs_t type, word36 data, const char * ctx) { ctx 282 src/dps8/hdbg.c void hdbgPARegR (enum hregs_t type, struct par_s * data, const char * ctx) { ctx 290 src/dps8/hdbg.c void hdbgPARegW (enum hregs_t type, struct par_s * data, const char * ctx) { ctx 299 src/dps8/hdbg.c ctx 306 src/dps8/hdbg.c ctx 314 src/dps8/hdbg.c void hdbgIEFP (enum hdbgIEFP_e type, word15 segno, word18 offset, const char * ctx) { ctx 323 src/dps8/hdbg.c void hdbgNote (const char * ctx, const char * fmt, ...) { ctx 339 src/dps8/hdbg.c p->ctx, ctx 349 src/dps8/hdbg.c p->ctx, ctx 363 src/dps8/hdbg.c p->ctx, ctx 372 src/dps8/hdbg.c p->ctx, ctx 385 src/dps8/hdbg.c p->ctx, ctx 397 src/dps8/hdbg.c p->ctx, ctx 408 src/dps8/hdbg.c p->ctx, ctx 429 src/dps8/hdbg.c p->ctx, ctx 442 src/dps8/hdbg.c p->ctx, ctx 450 src/dps8/hdbg.c p->ctx, ctx 462 src/dps8/hdbg.c p->ctx, ctx 473 src/dps8/hdbg.c p->ctx, ctx 486 src/dps8/hdbg.c p->ctx, ctx 28 src/dps8/hdbg.h void hdbgTrace (const char * ctx); ctx 41 src/dps8/hdbg.h void hdbgIEFP (enum hdbgIEFP_e type, word15 segno, word18 offset, const char * ctx); ctx 42 src/dps8/hdbg.h void hdbgMRead (word24 addr, word36 data, const char * ctx); ctx 43 src/dps8/hdbg.h void hdbgMWrite (word24 addr, word36 data, const char * ctx); ctx 45 src/dps8/hdbg.h const char * faultMsg, const char * ctx); ctx 46 src/dps8/hdbg.h void hdbgIntrSet (uint inum, uint cpuUnitIdx, uint scuUnitIdx, const char * ctx); ctx 47 src/dps8/hdbg.h void hdbgIntr (uint intr_pair_addr, const char * ctx); ctx 48 src/dps8/hdbg.h void hdbgNote (const char * ctx, const char * fmt, ...) ctx 66 src/dps8/hdbg.h void hdbgRegR (enum hregs_t type, word36 data, const char * ctx); ctx 67 src/dps8/hdbg.h void hdbgRegW (enum hregs_t type, word36 data, const char * ctx); ctx 69 src/dps8/hdbg.h void hdbgPARegR (enum hregs_t type, struct par_s * data, const char * ctx); ctx 70 src/dps8/hdbg.h void hdbgPARegW (enum hregs_t type, struct par_s * data, const char * ctx); ctx 72 src/dps8/hdbg.h void hdbgAPURead (word15 segno, word18 offset, word24 final, word36 data, const char * ctx); ctx 73 src/dps8/hdbg.h void hdbgAPUWrite (word15 segno, word18 offset, word24 final, word36 data, const char * ctx); ctx 97 src/dps8/hdbg.h # define HDBGIntrSet(i, c, s, ctx) hdbgIntrSet(i, c, s, ctx) ctx 115 src/libsir/include/sir/internal.h BOOL CALLBACK _sir_init_static_once(PINIT_ONCE ponce, PVOID param, PVOID* ctx); ctx 135 src/libsir/include/sir/internal.h bool _sir_syslog_init(const char* name, sir_syslog_dest* ctx); ctx 144 src/libsir/include/sir/internal.h bool _sir_syslog_open(sir_syslog_dest* ctx); ctx 150 src/libsir/include/sir/internal.h bool _sir_syslog_write(sir_level level, const sirbuf* buf, const sir_syslog_dest* ctx); ctx 165 src/libsir/include/sir/internal.h bool _sir_syslog_close(sir_syslog_dest* ctx); ctx 168 src/libsir/include/sir/internal.h void _sir_syslog_reset(sir_syslog_dest* ctx); ctx 61 src/libsir/src/sirconsole.c BOOL CALLBACK __sir_config_consoles_once(PINIT_ONCE ponce, PVOID param, PVOID* ctx) { ctx 64 src/libsir/src/sirconsole.c SIR_UNUSED(ctx); ctx 509 src/libsir/src/sirinternal.c BOOL CALLBACK _sir_init_static_once(PINIT_ONCE ponce, PVOID param, PVOID* ctx) { ctx 512 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 867 src/libsir/src/sirinternal.c bool _sir_syslog_init(const char* name, sir_syslog_dest* ctx) { ctx 869 src/libsir/src/sirinternal.c if (!_sir_validptr(name) || !_sir_validptr(ctx)) ctx 873 src/libsir/src/sirinternal.c if (!_sir_validstrnofail(ctx->identity)) { ctx 877 src/libsir/src/sirinternal.c (void)_sir_strncpy(ctx->identity, SIR_MAX_SYSLOG_ID, name, strnlen(name, SIR_MAX_SYSLOG_ID)); ctx 883 src/libsir/src/sirinternal.c (void)_sir_strncpy(ctx->identity, SIR_MAX_SYSLOG_ID, appbasename, ctx 887 src/libsir/src/sirinternal.c (void)_sir_strncpy(ctx->identity, SIR_MAX_SYSLOG_ID, SIR_FALLBACK_SYSLOG_ID, ctx 897 src/libsir/src/sirinternal.c if (!_sir_validstrnofail(ctx->category)) { ctx 899 src/libsir/src/sirinternal.c (void)_sir_strncpy(ctx->category, SIR_MAX_SYSLOG_CAT, SIR_FALLBACK_SYSLOG_CAT, ctx 905 src/libsir/src/sirinternal.c _sir_setbitshigh(&ctx->_state.mask, SIRSL_IS_INIT); ctx 906 src/libsir/src/sirinternal.c _sir_selflog("resolved (identity: '%s', category: '%s')", ctx->identity, ctx->category); ctx 908 src/libsir/src/sirinternal.c return _sir_syslog_open(ctx); ctx 911 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 916 src/libsir/src/sirinternal.c bool _sir_syslog_open(sir_syslog_dest* ctx) { ctx 918 src/libsir/src/sirinternal.c if (!_sir_bittest(ctx->_state.mask, SIRSL_IS_INIT)) { ctx 923 src/libsir/src/sirinternal.c if (_sir_bittest(ctx->_state.mask, SIRSL_IS_OPEN)) { ctx 928 src/libsir/src/sirinternal.c _sir_selflog("opening log (levels: %04"PRIx16", options: %08"PRIx32")", ctx->levels, ctx 929 src/libsir/src/sirinternal.c ctx->opts); ctx 932 src/libsir/src/sirinternal.c ctx->_state.logger = (void*)os_log_create(ctx->identity, ctx->category); ctx 933 src/libsir/src/sirinternal.c _sir_selflog("opened os_log ('%s', '%s')", ctx->identity, ctx->category); ctx 935 src/libsir/src/sirinternal.c int logopt = LOG_NDELAY | (_sir_bittest(ctx->opts, SIRO_NOPID) ? 0 : LOG_PID); ctx 938 src/libsir/src/sirinternal.c openlog(ctx->identity, logopt, facility); ctx 939 src/libsir/src/sirinternal.c _sir_selflog("opened syslog('%s', %x, %x)", ctx->identity, logopt, facility); ctx 942 src/libsir/src/sirinternal.c (PREGHANDLE)&ctx->_state.logger); ctx 944 src/libsir/src/sirinternal.c _sir_selflog("opened eventlog('%s')", ctx->identity); ctx 952 src/libsir/src/sirinternal.c _sir_setbitshigh(&ctx->_state.mask, SIRSL_IS_OPEN); ctx 955 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 960 src/libsir/src/sirinternal.c bool _sir_syslog_write(sir_level level, const sirbuf* buf, const sir_syslog_dest* ctx) { ctx 962 src/libsir/src/sirinternal.c if (!_sir_bittest(ctx->_state.mask, SIRSL_IS_INIT)) { ctx 967 src/libsir/src/sirinternal.c if (!_sir_bittest(ctx->_state.mask, SIRSL_IS_OPEN)) { ctx 974 src/libsir/src/sirinternal.c os_log_debug((os_log_t)ctx->_state.logger, SIR_OS_LOG_FORMAT, buf->message); ctx 976 src/libsir/src/sirinternal.c os_log_info((os_log_t)ctx->_state.logger, SIR_OS_LOG_FORMAT, buf->message); ctx 978 src/libsir/src/sirinternal.c os_log_error((os_log_t)ctx->_state.logger, SIR_OS_LOG_FORMAT, buf->message); ctx 980 src/libsir/src/sirinternal.c os_log_fault((os_log_t)ctx->_state.logger, SIR_OS_LOG_FORMAT, buf->message); ctx 1037 src/libsir/src/sirinternal.c write = EventWrite((REGHANDLE)ctx->_state.logger, edesc, 1UL, &eddesc); ctx 1050 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 1056 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 1115 src/libsir/src/sirinternal.c bool _sir_syslog_close(sir_syslog_dest* ctx) { ctx 1117 src/libsir/src/sirinternal.c if (!_sir_validptr(ctx)) ctx 1120 src/libsir/src/sirinternal.c if (!_sir_bittest(ctx->_state.mask, SIRSL_IS_OPEN)) { ctx 1129 src/libsir/src/sirinternal.c _sir_setbitslow(&ctx->_state.mask, SIRSL_IS_OPEN); ctx 1134 src/libsir/src/sirinternal.c _sir_setbitslow(&ctx->_state.mask, SIRSL_IS_OPEN); ctx 1138 src/libsir/src/sirinternal.c ULONG unreg = EventUnregister((REGHANDLE)ctx->_state.logger); ctx 1139 src/libsir/src/sirinternal.c _sir_setbitslow(&ctx->_state.mask, SIRSL_IS_OPEN); ctx 1147 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 1151 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 1156 src/libsir/src/sirinternal.c void _sir_syslog_reset(sir_syslog_dest* ctx) { ctx 1158 src/libsir/src/sirinternal.c if (_sir_validptr(ctx)) { ctx 1159 src/libsir/src/sirinternal.c uint32_t old = ctx->_state.mask; ctx 1160 src/libsir/src/sirinternal.c ctx->_state.mask = 0U; ctx 1161 src/libsir/src/sirinternal.c ctx->_state.logger = NULL; ctx 1165 src/libsir/src/sirinternal.c SIR_UNUSED(ctx); ctx 245 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 247 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", ctx 248 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); ctx 250 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; ctx 251 src/simh/sim_disk.c tbc = sects * ctx->sector_size; ctx 256 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); ctx 257 src/simh/sim_disk.c if (i < tbc/ctx->xfer_element_size) /* fill */ ctx 258 src/simh/sim_disk.c (void)memset (&buf[i*ctx->xfer_element_size], 0, tbc-(i*ctx->xfer_element_size)); ctx 261 src/simh/sim_disk.c *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); ctx 269 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 272 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", ctx 273 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); ctx 276 src/simh/sim_disk.c (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) { ctx 277 src/simh/sim_disk.c (void)memset (buf, '\0', ctx->sector_size); /* are bad block management efforts - zero buffer */ ctx 283 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) || /* Sector Aligned & whole sector transfers */ ctx 284 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && ctx 285 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { ctx 302 src/simh/sim_disk.c uint8 *tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); ctx 303 src/simh/sim_disk.c t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */ ctx 321 src/simh/sim_disk.c memcpy (buf, tbuf + ((lba - tlba) * ctx->sector_size), sects * ctx->sector_size); ctx 347 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 349 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", ctx 350 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); ctx 352 src/simh/sim_disk.c da = ((t_offset)lba) * ctx->sector_size; ctx 353 src/simh/sim_disk.c tbc = sects * ctx->sector_size; ctx 358 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); ctx 361 src/simh/sim_disk.c *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); ctx 368 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 373 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", ctx 374 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); ctx 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))); ctx 386 src/simh/sim_disk.c for (offset = 0; offset < ctx->sector_size; offset += sizeof(uint32)) { ctx 387 src/simh/sim_disk.c if (*((uint32 *)&buf[sect*ctx->sector_size + offset]) != (uint32)(lba + sect)) { ctx 402 src/simh/sim_disk.c sim_disk_data_trace (uptr, buf+sect*ctx->sector_size, lba+sect, ctx->sector_size, "Found", TRUE, 1); ctx 410 src/simh/sim_disk.c if ((0 == (ctx->sector_size & (ctx->storage_sector_size - 1))) || /* Sector Aligned & whole sector transfers */ ctx 411 src/simh/sim_disk.c ((0 == ((lba*ctx->sector_size) & (ctx->storage_sector_size - 1))) && ctx 412 src/simh/sim_disk.c (0 == ((sects*ctx->sector_size) & (ctx->storage_sector_size - 1))))) { ctx 414 src/simh/sim_disk.c if (sim_end || (ctx->xfer_element_size == sizeof (char))) ctx 420 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects * ctx->sector_size); ctx 423 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf, buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); ctx 432 src/simh/sim_disk.c t_lba sspsts = ctx->storage_sector_size/ctx->sector_size; /* sim sectors in a storage sector */ ctx 436 src/simh/sim_disk.c tbuf = (uint8*) malloc (sects*ctx->sector_size + 2*ctx->storage_sector_size); ctx 457 src/simh/sim_disk.c sim_buf_copy_swapped (tbuf + (lba & (sspsts - 1)) * ctx->sector_size, ctx 458 src/simh/sim_disk.c buf, ctx->xfer_element_size, (sects * ctx->sector_size) / ctx->xfer_element_size); ctx 753 src/simh/sim_disk.c struct disk_context *ctx; ctx 782 src/simh/sim_disk.c uptr->disk_ctx = ctx = (struct disk_context *)calloc(1, sizeof(struct disk_context)); ctx 783 src/simh/sim_disk.c if (!ctx) ctx 817 src/simh/sim_disk.c ctx->sector_size = (uint32)sector_size; /* save sector_size */ ctx 818 src/simh/sim_disk.c ctx->capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* save capacity units (word: 2, byte: 1) */ ctx 819 src/simh/sim_disk.c ctx->xfer_element_size = (uint32)xfer_element_size; /* save xfer_element_size */ ctx 820 src/simh/sim_disk.c ctx->dptr = dptr; /* save DEVICE pointer */ ctx 821 src/simh/sim_disk.c ctx->dbit = dbit; /* save debug bit */ ctx 822 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_attach(unit=%lu,filename='%s')\n", ctx 823 src/simh/sim_disk.c (unsigned long)(uptr-ctx->dptr->units), uptr->filename); ctx 824 src/simh/sim_disk.c ctx->auto_format = auto_format; /* save that we auto selected format */ ctx 825 src/simh/sim_disk.c ctx->storage_sector_size = (uint32)sector_size; /* Default */ ctx 859 src/simh/sim_disk.c ((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)); ctx 876 src/simh/sim_disk.c storage_function (uptr->fileref, &ctx->storage_sector_size, &ctx->removable); ctx 880 src/simh/sim_disk.c uint8 *secbuf = (uint8 *)calloc (1, ctx->sector_size); /* alloc temp sector buf */ ctx 885 src/simh/sim_disk.c (t_lba)(((((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)) - \ ctx 886 src/simh/sim_disk.c ctx->sector_size)/ctx->sector_size), secbuf, NULL, 1); /* Write Last Sector */ ctx 1007 src/simh/sim_disk.c (filesystem_capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)))) { ctx 1009 src/simh/sim_disk.c uptr->capac = (t_addr)(filesystem_capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); ctx 1018 src/simh/sim_disk.c if ((capac < (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))) && \ ctx 1021 src/simh/sim_disk.c uptr->capac = (t_addr)(capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); ctx 1035 src/simh/sim_disk.c if ((capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))) || ctx 1037 src/simh/sim_disk.c uptr->capac = (t_addr)(capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); ctx 1048 src/simh/sim_disk.c struct disk_context *ctx; ctx 1055 src/simh/sim_disk.c ctx = (struct disk_context *)uptr->disk_ctx; ctx 1088 src/simh/sim_disk.c if (ctx && ctx -> auto_format) ctx 1135 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 1140 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_reset(unit=%lu)\n", (unsigned long)(uptr-ctx->dptr->units)); ctx 1179 src/simh/sim_disk.c struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx; ctx 1181 src/simh/sim_disk.c if (sim_deb && (ctx->dptr->dctrl & reason)) { ctx 1185 src/simh/sim_disk.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), pos, len, txt, reason); ctx 146 src/simh/sim_tape.c struct tape_context *ctx; ctx 204 src/simh/sim_tape.c uptr->tape_ctx = ctx = (struct tape_context *)calloc(1, sizeof(struct tape_context)); ctx 205 src/simh/sim_tape.c if (!ctx) ctx 217 src/simh/sim_tape.c ctx->dptr = dptr; /* save DEVICE pointer */ ctx 218 src/simh/sim_tape.c ctx->dbit = dbit; /* save debug bit */ ctx 219 src/simh/sim_tape.c ctx->auto_format = auto_format; /* save that we auto selected format */ ctx 232 src/simh/sim_tape.c struct tape_context *ctx; ctx 243 src/simh/sim_tape.c ctx = (struct tape_context *)uptr->tape_ctx; ctx 248 src/simh/sim_tape.c if (ctx) ctx 249 src/simh/sim_tape.c auto_format = ctx->auto_format; ctx 303 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 305 src/simh/sim_tape.c if (ctx == NULL) ctx 307 src/simh/sim_tape.c if (sim_deb && (ctx->dptr->dctrl & reason)) ctx 308 src/simh/sim_tape.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), "", len, txt, reason); ctx 398 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 413 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 575 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %lld, lnt: %lld, pos: %" T_ADDR_FMT "u\n", ctx 612 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 629 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 761 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %lld, lnt: %lld, pos: %" T_ADDR_FMT "u\n", ctx 789 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 795 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 797 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecf(unit=%d, buf=%p, max=%lld)\n", ctx 798 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), buf, (long long)max); ctx 819 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); ctx 854 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 859 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 861 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecr(unit=%d, buf=%p, max=%lld)\n", ctx 862 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), buf, (long long)max); ctx 876 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read Reverse", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); ctx 906 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 910 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 912 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrrecf(unit=%d, buf=%p, bc=%lld)\n", ctx 913 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), buf, (long long)bc); ctx 915 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, bc, "Record Write", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); ctx 952 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, sbc, "Record Written", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); ctx 967 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 972 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 982 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "wr_lnt: lnt: %lld, pos: %" T_ADDR_FMT "u\n", ctx 992 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 994 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 996 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrtmk(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1016 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1018 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1020 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wreom(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1043 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1046 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1048 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wreomrw(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1166 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1177 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1179 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrgap(unit=%d, gaplen=%u)\n", (int)(uptr-ctx->dptr->units), gaplen); ctx 1340 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1344 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1346 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecf(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1381 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1385 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1387 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecsf(unit=%d, count=%lld)\n", ctx 1388 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count); ctx 1428 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1431 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1433 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecr(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1474 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1478 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1480 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecsr(unit=%d, count=%lld)\n", ctx 1481 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count); ctx 1523 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1528 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1530 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilebyrecf(unit=%d, count=%lld, check_leot=%lld)\n", ctx 1531 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count, (long long)check_leot); ctx 1596 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1599 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1601 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilef(unit=%d, count=%lld)\n", ctx 1602 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count); ctx 1637 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1643 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1645 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilebyrecr(unit=%d, count=%lld)\n", ctx 1646 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count); ctx 1692 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1695 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1697 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfiler(unit=%d, count=%lld)\n", ctx 1698 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), (long long)count); ctx 1714 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1717 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1719 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rewind(unit=%d)\n", (int)(uptr-ctx->dptr->units)); ctx 1738 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1741 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1743 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_position(unit=%d, flags=0x%X, recs=%lld, files=%lld)\n", ctx 1744 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), flags, (long long)recs, (long long)files); ctx 1802 src/simh/sim_tape.c struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; ctx 1808 src/simh/sim_tape.c if (ctx == NULL) /* if not properly attached? */ ctx 1810 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_reset(unit=%d)\n", (int)(uptr-ctx->dptr->units));