dptr 160 src/dps8/dps8_absi.c static t_stat absi_reset (UNUSED DEVICE * dptr) dptr 83 src/dps8/dps8_console.c static t_stat opc_reset (DEVICE * dptr); dptr 404 src/dps8/dps8_console.c static t_stat opc_reset (UNUSED DEVICE * dptr) dptr 1242 src/dps8/dps8_cpu.c static t_stat cpu_boot (UNUSED int32 cpu_unit_idx, UNUSED DEVICE * dptr) dptr 1603 src/dps8/dps8_cpu.c static t_stat sim_cpu_reset (UNUSED DEVICE *dptr) dptr 4485 src/dps8/dps8_cpu.c static const char * get_dbg_verb (uint32 dbits, DEVICE * dptr) dptr 4492 src/dps8/dps8_cpu.c if (dptr->debflags == 0) dptr 4495 src/dps8/dps8_cpu.c dbits &= dptr->dctrl; /* Look for just the bits that matched */ dptr 4498 src/dps8/dps8_cpu.c while ((offset < 32) && dptr->debflags[offset].name) dptr 4500 src/dps8/dps8_cpu.c if (dptr->debflags[offset].mask == dbits) /* All Bits Match */ dptr 4501 src/dps8/dps8_cpu.c return dptr->debflags[offset].name; dptr 4502 src/dps8/dps8_cpu.c if (dptr->debflags[offset].mask & dbits) dptr 4503 src/dps8/dps8_cpu.c some_match = dptr->debflags[offset].name; dptr 4509 src/dps8/dps8_cpu.c void dps8_sim_debug (uint32 dbits, DEVICE * dptr, unsigned long long cnt, const char* fmt, ...) dptr 4512 src/dps8/dps8_cpu.c if (sim_deb && dptr && (dptr->dctrl & dbits)) dptr 4514 src/dps8/dps8_cpu.c const char * debug_type = get_dbg_verb (dbits, dptr); dptr 4575 src/dps8/dps8_cpu.c current_running_cpu_idx, dptr->name, debug_type, i-j, &buf[j]); dptr 65 src/dps8/dps8_crdpun.c static t_stat pun_reset (DEVICE * dptr); dptr 271 src/dps8/dps8_crdpun.c static t_stat pun_reset (UNUSED DEVICE * dptr) dptr 68 src/dps8/dps8_crdrdr.c static t_stat rdr_reset (DEVICE * dptr); dptr 227 src/dps8/dps8_crdrdr.c static t_stat rdr_reset (UNUSED DEVICE * dptr) dptr 230 src/dps8/dps8_crdrdr.c dptr 239 src/dps8/dps8_dia.c static t_stat reset (UNUSED DEVICE * dptr) dptr 622 src/dps8/dps8_disk.c static t_stat disk_reset (UNUSED DEVICE * dptr) dptr 264 src/dps8/dps8_fnp2.c static t_stat fnpReset (DEVICE * dptr); dptr 382 src/dps8/dps8_fnp2.c static t_stat fnpReset (UNUSED DEVICE * dptr) dptr 385 src/dps8/dps8_fnp2.c dptr 1345 src/dps8/dps8_iom.c static t_stat iom_reset (UNUSED DEVICE * dptr) dptr 1586 src/dps8/dps8_iom.c static t_stat iom_boot (int unitNum, UNUSED DEVICE * dptr) dptr 263 src/dps8/dps8_mgp.c mgp_reset(UNUSED DEVICE *dptr) dptr 294 src/dps8/dps8_mt.c static t_stat mtp_reset (UNUSED DEVICE * dptr) dptr 839 src/dps8/dps8_mt.c static t_stat mt_reset (DEVICE * dptr) dptr 841 src/dps8/dps8_mt.c for (int i = 0; i < (int) dptr -> numunits; i ++) dptr 85 src/dps8/dps8_prt.c static t_stat prt_reset (DEVICE * dptr); dptr 364 src/dps8/dps8_prt.c static t_stat prt_reset (UNUSED DEVICE * dptr) dptr 367 src/dps8/dps8_prt.c dptr 1150 src/dps8/dps8_scu.c t_stat scu_reset (UNUSED DEVICE * dptr) dptr 106 src/dps8/dps8_scu.h t_stat scu_reset (DEVICE *dptr); dptr 25 src/dps8/dps8_simh.h # define if_sim_debug(dbits, dptr) if ((0)) dptr 27 src/dps8/dps8_simh.h # define if_sim_debug(dbits, dptr) \ dptr 30 src/dps8/dps8_simh.h (((dptr)->dctrl & (dbits)) || (dbits) == 0) && \ dptr 31 src/dps8/dps8_simh.h ((dptr != & cpu_dev) || ((1 << current_running_cpu_idx) & dbgCPUMask)) && \ dptr 32 src/dps8/dps8_simh.h ((dptr != & cpu_dev) || (((dptr)->dctrl & (DBG_INTR | DBG_FAULT))) || (! sim_deb_segno_on) || sim_deb_segno[cpu.PPR.PSR & (DEBUG_SEGNO_LIMIT - 1)]) && \ dptr 33 src/dps8/dps8_simh.h ((dptr != & cpu_dev) || sim_deb_ringno == NO_SUCH_RINGNO || sim_deb_ringno == cpu . PPR. PRR) && \ dptr 34 src/dps8/dps8_simh.h ((dptr != & cpu_dev) || (! sim_deb_bar) || (! TST_I_NBAR)) && \ dptr 38 src/dps8/dps8_simh.h ((dptr != & cpu_dev) | (((dbits) & DBG_TRACE) ? (sim_deb_skip_cnt ++ >= sim_deb_skip_limit) : (sim_deb_skip_cnt >= sim_deb_skip_limit))) \ dptr 48 src/dps8/dps8_simh.h # define sim_debug(dbits, dptr, ...) \ dptr 49 src/dps8/dps8_simh.h if_sim_debug((dbits), dptr) \ dptr 50 src/dps8/dps8_simh.h dps8_sim_debug ((dbits), dptr, DBG_CTR, __VA_ARGS__); \ dptr 54 src/dps8/dps8_simh.h # define sim_debug(dbits, dptr, ...) \ dptr 55 src/dps8/dps8_simh.h if_sim_debug((dbits), dptr) \ dptr 56 src/dps8/dps8_simh.h dps8_sim_debug ((dbits), dptr, __VA_ARGS__); \ dptr 159 src/dps8/dps8_simh.h void dps8_sim_debug (uint32 dbits, DEVICE* dptr, unsigned long long cnt, const char* fmt, ...); dptr 245 src/dps8/dps8_socket_dev.c static t_stat sk_reset (UNUSED DEVICE * dptr) dptr 134 src/dps8/dps8_sys.c static t_addr parse_addr(DEVICE *dptr, const char *cptr, const char **optr); dptr 135 src/dps8/dps8_sys.c static void fprint_addr(FILE *stream, DEVICE *dptr, t_addr addr); dptr 4732 src/dps8/dps8_sys.c static t_addr parse_addr (UNUSED DEVICE * dptr, const char *cptr, dptr 4830 src/dps8/dps8_sys.c static void fprint_addr (FILE * stream, UNUSED DEVICE * dptr, t_addr simh_addr) dptr 5020 src/dps8/dps8_sys.c static t_stat sys_reset (UNUSED DEVICE * dptr) dptr 167 src/dps8/dps8_urp.c static t_stat urpReset (UNUSED DEVICE * dptr) dptr 203 src/simh/scp.c void (*sim_vm_sprint_addr) (char *buf, DEVICE *dptr, t_addr addr) = NULL; dptr 204 src/simh/scp.c void (*sim_vm_fprint_addr) (FILE *st, DEVICE *dptr, t_addr addr) = NULL; dptr 205 src/simh/scp.c t_addr (*sim_vm_parse_addr) (DEVICE *dptr, CONST char *cptr, CONST char **tptr) = NULL; dptr 214 src/simh/scp.c t_stat set_dev_radix (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 215 src/simh/scp.c t_stat set_dev_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 216 src/simh/scp.c t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 217 src/simh/scp.c t_stat set_unit_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 220 src/simh/scp.c t_stat show_config (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 221 src/simh/scp.c t_stat show_queue (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 222 src/simh/scp.c t_stat show_time (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 223 src/simh/scp.c t_stat show_mod_names (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 224 src/simh/scp.c t_stat show_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 225 src/simh/scp.c t_stat show_log_names (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 226 src/simh/scp.c t_stat show_dev_radix (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 227 src/simh/scp.c t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 228 src/simh/scp.c t_stat show_dev_logicals (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 229 src/simh/scp.c t_stat show_dev_modifiers (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 230 src/simh/scp.c t_stat show_dev_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 231 src/simh/scp.c t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 232 src/simh/scp.c t_stat show_buildinfo (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cprr); dptr 233 src/simh/scp.c t_stat show_prom (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 234 src/simh/scp.c t_stat show_default_base_system_script (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 235 src/simh/scp.c t_stat show_default (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 236 src/simh/scp.c t_stat show_break (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 237 src/simh/scp.c t_stat show_on (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 238 src/simh/scp.c t_stat sim_show_send (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 239 src/simh/scp.c t_stat sim_show_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 240 src/simh/scp.c t_stat show_device (FILE *st, DEVICE *dptr, int32 flag); dptr 241 src/simh/scp.c t_stat show_unit (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag); dptr 242 src/simh/scp.c t_stat show_all_mods (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flg, int32 *toks); dptr 243 src/simh/scp.c t_stat show_one_mod (FILE *st, DEVICE *dptr, UNIT *uptr, MTAB *mptr, CONST char *cptr, int32 flag); dptr 269 src/simh/scp.c t_stat get_aval (t_addr addr, DEVICE *dptr, UNIT *uptr); dptr 274 src/simh/scp.c void fprint_capac (FILE *st, DEVICE *dptr, UNIT *uptr); dptr 283 src/simh/scp.c t_stat scp_attach_unit (DEVICE *dptr, UNIT *uptr, const char *cptr); dptr 284 src/simh/scp.c t_stat scp_detach_unit (DEVICE *dptr, UNIT *uptr); dptr 285 src/simh/scp.c t_bool qdisable (DEVICE *dptr); dptr 288 src/simh/scp.c t_stat assign_device (DEVICE *dptr, const char *cptr); dptr 289 src/simh/scp.c t_stat deassign_device (DEVICE *dptr); dptr 296 src/simh/scp.c t_addr low, t_addr high, DEVICE *dptr, UNIT *uptr); dptr 297 src/simh/scp.c t_stat ex_addr (FILE *ofile, int32 flag, t_addr addr, DEVICE *dptr, UNIT *uptr); dptr 298 src/simh/scp.c t_stat dep_addr (int32 flag, const char *cptr, t_addr addr, DEVICE *dptr, dptr 309 src/simh/scp.c t_stat sim_show_asynch (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 315 src/simh/scp.c static const char *get_dbg_verb (uint32 dbits, DEVICE* dptr); dptr 2105 src/simh/scp.c void fprint_reg_help_ex (FILE *st, DEVICE *dptr, t_bool silent) dptr 2116 src/simh/scp.c if (dptr->registers) dptr 2117 src/simh/scp.c for (rptr = dptr->registers; rptr->name != NULL; rptr++) { dptr 2128 src/simh/scp.c if ((trptr == NULL) || (tdptr != dptr)) dptr 2133 src/simh/scp.c fprintf (st, "No register HELP available for the %s device\n", dptr->name); dptr 2149 src/simh/scp.c fprintf (st, "\nThe %s device implements these registers:\n\n", dptr->name); dptr 2150 src/simh/scp.c for (rptr = dptr->registers; rptr->name != NULL; rptr++) { dptr 2164 src/simh/scp.c if ((trptr == NULL) || (tdptr != dptr)) dptr 2165 src/simh/scp.c fprintf (st, " %s %s %4d %s\n", dptr->name, namebuf, rptr->width, rptr->desc ? rptr->desc : ""); dptr 2167 src/simh/scp.c fprintf (st, " %*s %s %4d %s\n", (int)strlen(dptr->name), "", namebuf, rptr->width, rptr->desc ? rptr->desc : ""); dptr 2173 src/simh/scp.c void fprint_reg_help (FILE *st, DEVICE *dptr) dptr 2175 src/simh/scp.c fprint_reg_help_ex (st, dptr, TRUE); dptr 2178 src/simh/scp.c void fprint_attach_help_ex (FILE *st, DEVICE *dptr, t_bool silent) dptr 2180 src/simh/scp.c if (dptr->attach_help) { dptr 2181 src/simh/scp.c fprintf (st, "\n%s device ATTACH commands:\n\n", dptr->name); dptr 2182 src/simh/scp.c dptr->attach_help (st, dptr, NULL, 0, NULL); dptr 2185 src/simh/scp.c if (DEV_TYPE(dptr) == DEV_DISK) { dptr 2186 src/simh/scp.c fprintf (st, "\n%s device ATTACH commands:\n\n", dptr->name); dptr 2187 src/simh/scp.c sim_disk_attach_help (st, dptr, NULL, 0, NULL); dptr 2190 src/simh/scp.c if (DEV_TYPE(dptr) == DEV_TAPE) { dptr 2191 src/simh/scp.c fprintf (st, "\n%s device ATTACH commands:\n\n", dptr->name); dptr 2192 src/simh/scp.c sim_tape_attach_help (st, dptr, NULL, 0, NULL); dptr 2196 src/simh/scp.c fprintf (st, "No ATTACH help is available for the %s device\n", dptr->name); dptr 2197 src/simh/scp.c if (dptr->help) dptr 2198 src/simh/scp.c dptr->help (st, dptr, NULL, 0, NULL); dptr 2202 src/simh/scp.c void fprint_set_help_ex (FILE *st, DEVICE *dptr, t_bool silent) dptr 2208 src/simh/scp.c uint32 enabled_units = dptr->numunits; dptr 2211 src/simh/scp.c sprintf (header, "\n%s device SET commands:\n\n", dptr->name); dptr 2212 src/simh/scp.c for (unit=0; unit < dptr->numunits; unit++) dptr 2213 src/simh/scp.c if (dptr->units[unit].flags & UNIT_DIS) dptr 2215 src/simh/scp.c if (dptr->modifiers) { dptr 2216 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { dptr 2217 src/simh/scp.c if (!MODMASK(mptr,MTAB_VDV) && MODMASK(mptr,MTAB_VUN) && (dptr->numunits != 1)) dptr 2223 src/simh/scp.c sprintf (buf, "SET %s %s%s", sim_dname (dptr), mptr->mstring, (strchr(mptr->mstring, '=')) ? "" : (MODMASK(mptr,MTAB_VALR) ? "=val" : (MODMASK(mptr,MTAB_VALO) ? "{=val}" : ""))); dptr 2231 src/simh/scp.c if (dptr->flags & DEV_DISABLE) { dptr 2233 src/simh/scp.c sprintf (buf, "SET %s ENABLE", sim_dname (dptr)); dptr 2234 src/simh/scp.c fprintf (st, "%-30s\tEnables device %s\n", buf, sim_dname (dptr)); dptr 2235 src/simh/scp.c sprintf (buf, "SET %s DISABLE", sim_dname (dptr)); dptr 2236 src/simh/scp.c fprintf (st, "%-30s\tDisables device %s\n", buf, sim_dname (dptr)); dptr 2238 src/simh/scp.c if (dptr->flags & DEV_DEBUG) { dptr 2240 src/simh/scp.c sprintf (buf, "SET %s DEBUG", sim_dname (dptr)); dptr 2241 src/simh/scp.c fprintf (st, "%-30s\tEnables debugging for device %s\n", buf, sim_dname (dptr)); dptr 2242 src/simh/scp.c sprintf (buf, "SET %s NODEBUG", sim_dname (dptr)); dptr 2243 src/simh/scp.c fprintf (st, "%-30s\tDisables debugging for device %s\n", buf, sim_dname (dptr)); dptr 2244 src/simh/scp.c if (dptr->debflags) { dptr 2247 src/simh/scp.c fprintf (st, "SET %s DEBUG=", sim_dname (dptr)); dptr 2248 src/simh/scp.c for (dep = dptr->debflags; dep->name != NULL; dep++) { dptr 2249 src/simh/scp.c fprintf (st, "%s%s", ((dep == dptr->debflags) ? "" : ";"), dep->name); dptr 2253 src/simh/scp.c fprintf (st, "%-30s\tEnables specific debugging for device %s\n", buf, sim_dname (dptr)); dptr 2254 src/simh/scp.c fprintf (st, "SET %s NODEBUG=", sim_dname (dptr)); dptr 2255 src/simh/scp.c for (dep = dptr->debflags; dep->name != NULL; dep++) dptr 2256 src/simh/scp.c fprintf (st, "%s%s", ((dep == dptr->debflags) ? "" : ";"), dep->name); dptr 2258 src/simh/scp.c fprintf (st, "%-30s\tDisables specific debugging for device %s\n", buf, sim_dname (dptr)); dptr 2260 src/simh/scp.c fprintf (st, "\n*%s device DEBUG settings:\n", sim_dname (dptr)); dptr 2261 src/simh/scp.c for (dep = dptr->debflags; dep->name != NULL; dep++) dptr 2266 src/simh/scp.c if ((dptr->modifiers) && (dptr->units) && (enabled_units != 1)) { dptr 2267 src/simh/scp.c if (dptr->units->flags & UNIT_DISABLE) { dptr 2269 src/simh/scp.c sprintf (buf, "SET %sn ENABLE", sim_dname (dptr)); dptr 2270 src/simh/scp.c fprintf (st, "%-30s\tEnables unit %sn\n", buf, sim_dname (dptr)); dptr 2271 src/simh/scp.c sprintf (buf, "SET %sn DISABLE", sim_dname (dptr)); dptr 2272 src/simh/scp.c fprintf (st, "%-30s\tDisables unit %sn\n", buf, sim_dname (dptr)); dptr 2274 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { dptr 2281 src/simh/scp.c sprintf (buf, "SET %s%s %s%s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->mstring, (strchr(mptr->mstring, '=')) ? "" : (MODMASK(mptr,MTAB_VALR) ? "=val" : (MODMASK(mptr,MTAB_VALO) ? "{=val}": ""))); dptr 2287 src/simh/scp.c fprintf (st, "No SET help is available for the %s device\n", dptr->name); dptr 2290 src/simh/scp.c void fprint_set_help (FILE *st, DEVICE *dptr) dptr 2292 src/simh/scp.c fprint_set_help_ex (st, dptr, TRUE); dptr 2295 src/simh/scp.c void fprint_show_help_ex (FILE *st, DEVICE *dptr, t_bool silent) dptr 2300 src/simh/scp.c uint32 enabled_units = dptr->numunits; dptr 2303 src/simh/scp.c sprintf (header, "\n%s device SHOW commands:\n\n", dptr->name); dptr 2304 src/simh/scp.c for (unit=0; unit < dptr->numunits; unit++) dptr 2305 src/simh/scp.c if (dptr->units[unit].flags & UNIT_DIS) dptr 2307 src/simh/scp.c if (dptr->modifiers) { dptr 2308 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { dptr 2309 src/simh/scp.c if (!MODMASK(mptr,MTAB_VDV) && MODMASK(mptr,MTAB_VUN) && (dptr->numunits != 1)) dptr 2316 src/simh/scp.c sprintf (buf, "SHOW %s %s%s", sim_dname (dptr), mptr->pstring, MODMASK(mptr,MTAB_SHP) ? "{=arg}" : ""); dptr 2320 src/simh/scp.c if (dptr->flags & DEV_DEBUG) { dptr 2322 src/simh/scp.c sprintf (buf, "SHOW %s DEBUG", sim_dname (dptr)); dptr 2323 src/simh/scp.c fprintf (st, "%-30s\tDisplays debugging status for device %s\n", buf, sim_dname (dptr)); dptr 2325 src/simh/scp.c if ((dptr->modifiers) && (dptr->units) && (enabled_units != 1)) { dptr 2326 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { dptr 2332 src/simh/scp.c sprintf (buf, "SHOW %s%s %s%s", sim_dname (dptr), (dptr->numunits > 1) ? "n" : "0", mptr->pstring, MODMASK(mptr,MTAB_SHP) ? "=arg" : ""); dptr 2337 src/simh/scp.c fprintf (st, "No SHOW help is available for the %s device\n", dptr->name); dptr 2340 src/simh/scp.c void fprint_show_help (FILE *st, DEVICE *dptr) dptr 2342 src/simh/scp.c fprint_show_help_ex (st, dptr, TRUE); dptr 2345 src/simh/scp.c void fprint_brk_help_ex (FILE *st, DEVICE *dptr, t_bool silent) dptr 2347 src/simh/scp.c BRKTYPTAB *brkt = dptr->brk_types; dptr 2351 src/simh/scp.c if ((dptr != sim_dflt_dev) && (!silent)) { dptr 2353 src/simh/scp.c if (dptr->help) dptr 2354 src/simh/scp.c dptr->help (st, dptr, NULL, 0, NULL); dptr 2361 src/simh/scp.c if (dptr == sim_dflt_dev) { dptr 2363 src/simh/scp.c fprintf (st, "%s supports the following breakpoint types:\n", sim_dname (dptr)); dptr 2373 src/simh/scp.c fprintf (st, "%s supports the following breakpoint types:\n", sim_dname (dptr)); dptr 2381 src/simh/scp.c t_stat help_dev_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr) dptr 2390 src/simh/scp.c if (dptr->help) /* Shouldn't this pass cptr so the device knows which command invoked? */ dptr 2391 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); dptr 2393 src/simh/scp.c fprintf (st, "No HELP available for the %s %s command\n", cmdp->name, sim_dname(dptr)); dptr 2397 src/simh/scp.c fprint_set_help_ex (st, dptr, FALSE); dptr 2401 src/simh/scp.c fprint_show_help_ex (st, dptr, FALSE); dptr 2405 src/simh/scp.c fprint_attach_help_ex (st, dptr, FALSE); dptr 2409 src/simh/scp.c fprint_brk_help_ex (st, dptr, FALSE); dptr 2412 src/simh/scp.c if (dptr->help) dptr 2413 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); dptr 2414 src/simh/scp.c fprintf (st, "No %s HELP is available for the %s device\n", cmdp->name, dptr->name); dptr 2418 src/simh/scp.c fprint_reg_help_ex (st, dptr, FALSE); dptr 2421 src/simh/scp.c if (dptr->help) dptr 2422 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); dptr 2423 src/simh/scp.c fprintf (st, "No %s HELP is available for the %s device\n", gbuf, dptr->name); dptr 2426 src/simh/scp.c if (dptr->help) { dptr 2427 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); dptr 2429 src/simh/scp.c if (dptr->description) dptr 2430 src/simh/scp.c fprintf (st, "%s %s HELP\n", dptr->description (dptr), dptr->name); dptr 2432 src/simh/scp.c fprintf (st, "%s HELP\n", dptr->name); dptr 2433 src/simh/scp.c fprint_set_help_ex (st, dptr, TRUE); dptr 2434 src/simh/scp.c fprint_show_help_ex (st, dptr, TRUE); dptr 2435 src/simh/scp.c fprint_attach_help_ex (st, dptr, TRUE); dptr 2436 src/simh/scp.c fprint_reg_help_ex (st, dptr, TRUE); dptr 2437 src/simh/scp.c fprint_brk_help_ex (st, dptr, TRUE); dptr 2471 src/simh/scp.c DEVICE *dptr; dptr 2475 src/simh/scp.c dptr = find_unit (gbuf, &uptr); dptr 2476 src/simh/scp.c if (dptr == NULL) dptr 2477 src/simh/scp.c dptr = find_dev (gbuf); dptr 2478 src/simh/scp.c if (dptr != NULL) { dptr 2479 src/simh/scp.c r = help_dev_help (stdout, dptr, uptr, flag, (cmdp->action == &set_cmd) ? "SET" : "SHOW"); dptr 2481 src/simh/scp.c help_dev_help (sim_log, dptr, uptr, flag | SCP_HELP_FLAT, (cmdp->action == &set_cmd) ? "SET" : "SHOW"); dptr 2504 src/simh/scp.c dptr 2507 src/simh/scp.c dptr 2510 src/simh/scp.c dptr 2511 src/simh/scp.c dptr 2512 src/simh/scp.c dptr 2513 src/simh/scp.c dptr 2514 src/simh/scp.c dptr 2515 src/simh/scp.c dptr 2516 src/simh/scp.c dptr 2518 src/simh/scp.c dptr 2519 src/simh/scp.c dptr 2520 src/simh/scp.c dptr 2522 src/simh/scp.c dptr 2524 src/simh/scp.c dptr 2526 src/simh/scp.c dptr 2557 src/simh/scp.c DEVICE *dptr; dptr 2560 src/simh/scp.c dptr = find_unit (gbuf, &uptr); dptr 2561 src/simh/scp.c if (dptr == NULL) { dptr 2562 src/simh/scp.c dptr = find_dev (gbuf); dptr 2563 src/simh/scp.c if (dptr == NULL) dptr 2565 src/simh/scp.c if (dptr->flags & DEV_DIS) dptr 2566 src/simh/scp.c sim_printf ("Device %s is currently disabled\n", dptr->name); dptr 2568 src/simh/scp.c r = help_dev_help (stdout, dptr, uptr, flag, cptr); dptr 2570 src/simh/scp.c help_dev_help (sim_log, dptr, uptr, flag | SCP_HELP_FLAT, cptr); dptr 3489 src/simh/scp.c t_stat sim_show_send (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3529 src/simh/scp.c t_stat sim_show_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3790 src/simh/scp.c DEVICE *dptr; dptr 3801 src/simh/scp.c if ((dptr = find_dev (gbuf))) { /* device match? */ dptr 3802 src/simh/scp.c uptr = dptr->units; /* first unit */ dptr 3807 src/simh/scp.c else if ((dptr = find_unit (gbuf, &uptr))) { /* unit match? */ dptr 3824 src/simh/scp.c dptr = sim_dflt_dev; dptr 3832 src/simh/scp.c if (!dptr) dptr 3835 src/simh/scp.c uptr = dptr->units; /* first unit */ dptr 3847 src/simh/scp.c for (mptr = dptr->modifiers; mptr && (mptr->mask != 0); mptr++) { dptr 3896 src/simh/scp.c r = glbr->action (dptr, uptr, glbr->arg, cvptr); /* do global */ dptr 3900 src/simh/scp.c else if (!dptr->modifiers) /* no modifiers? */ dptr 3934 src/simh/scp.c t_stat set_dev_radix (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3938 src/simh/scp.c dptr->dradix = flag & 037; dptr 3944 src/simh/scp.c t_stat set_dev_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3951 src/simh/scp.c if ((dptr->flags & DEV_DISABLE) == 0) /* allowed? */ dptr 3954 src/simh/scp.c if ((dptr->flags & DEV_DIS) == 0) /* already enb? ok */ dptr 3956 src/simh/scp.c dptr->flags = dptr->flags & ~DEV_DIS; /* no, enable */ dptr 3959 src/simh/scp.c if (dptr->flags & DEV_DIS) /* already dsb? ok */ dptr 3961 src/simh/scp.c for (i = 0; i < dptr->numunits; i++) { /* check units */ dptr 3962 src/simh/scp.c up = (dptr->units) + i; /* att or active? */ dptr 3966 src/simh/scp.c dptr->flags = dptr->flags | DEV_DIS; /* disable */ dptr 3968 src/simh/scp.c if (dptr->reset) /* reset device */ dptr 3969 src/simh/scp.c return dptr->reset (dptr); dptr 3975 src/simh/scp.c t_stat set_unit_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3994 src/simh/scp.c t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 3999 src/simh/scp.c if ((dptr->flags & DEV_DEBUG) == 0) dptr 4002 src/simh/scp.c dptr->dctrl = flag ? (dptr->debflags ? flag : 0xFFFFFFFF) : 0;/* disable/enable w/o table */ dptr 4003 src/simh/scp.c if (flag && dptr->debflags) { /* enable with table? */ dptr 4004 src/simh/scp.c for (dep = dptr->debflags; dep->name != NULL; dep++) dptr 4005 src/simh/scp.c dptr->dctrl = dptr->dctrl | dep->mask; /* set all */ dptr 4009 src/simh/scp.c if (dptr->debflags == NULL) /* must have table */ dptr 4013 src/simh/scp.c for (dep = dptr->debflags; dep->name != NULL; dep++) { dptr 4016 src/simh/scp.c dptr->dctrl = dptr->dctrl | dep->mask; dptr 4017 src/simh/scp.c else dptr->dctrl = dptr->dctrl & ~dep->mask; dptr 4056 src/simh/scp.c DEVICE *dptr; dptr 4066 src/simh/scp.c if ((dptr = find_dev (gbuf))) { /* device match? */ dptr 4067 src/simh/scp.c uptr = dptr->units; /* first unit */ dptr 4072 src/simh/scp.c else if ((dptr = find_unit (gbuf, &uptr))) { /* unit match? */ dptr 4093 src/simh/scp.c dptr = sim_dflt_dev; dptr 4102 src/simh/scp.c if (!dptr) { dptr 4112 src/simh/scp.c show_device (ofile, dptr, 0): dptr 4113 src/simh/scp.c show_unit (ofile, dptr, uptr, -1); dptr 4121 src/simh/scp.c for (mptr = dptr->modifiers; mptr && (mptr->mask != 0); mptr++) { dptr 4129 src/simh/scp.c show_one_mod (ofile, dptr, uptr, mptr, cvptr, 1); dptr 4137 src/simh/scp.c r = shptr->action (ofile, dptr, uptr, shptr->arg, cptr); dptr 4142 src/simh/scp.c if (!dptr->modifiers) /* no modifiers? */ dptr 4143 src/simh/scp.c return sim_messagef (SCPE_NOPARAM, "%s device has no parameters\n", dptr->name); dptr 4165 src/simh/scp.c t_stat show_device (FILE *st, DEVICE *dptr, int32 flag) dptr 4171 src/simh/scp.c if (strcmp(sim_dname (dptr),"SYS") != 0) { dptr 4172 src/simh/scp.c fprintf (st, "%s", sim_dname (dptr)); /* print dev name */ dptr 4173 src/simh/scp.c if ((flag == 2) && dptr->description) { dptr 4174 src/simh/scp.c fprintf (st, "\t%s\n", dptr->description(dptr)); dptr 4177 src/simh/scp.c if ((sim_switches & SWMASK ('D')) && dptr->description) dptr 4178 src/simh/scp.c fprintf (st, "\t%s\n", dptr->description(dptr)); dptr 4180 src/simh/scp.c if (qdisable (dptr)) { /* disabled? */ dptr 4184 src/simh/scp.c for (j = ucnt = udbl = 0; j < dptr->numunits; j++) { /* count units */ dptr 4185 src/simh/scp.c uptr = dptr->units + j; dptr 4192 src/simh/scp.c if (dptr->numunits == 0) { dptr 4210 src/simh/scp.c if ((flag != 2) || !dptr->description || toks) dptr 4216 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { /* loop thru units */ dptr 4217 src/simh/scp.c uptr = dptr->units + j; dptr 4219 src/simh/scp.c show_unit (st, dptr, uptr, ucnt + udbl); dptr 4231 src/simh/scp.c t_stat show_unit (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag) dptr 4233 src/simh/scp.c int32 u = (int32)(uptr - dptr->units); dptr 4237 src/simh/scp.c fprintf (st, " %s%d \n", sim_dname (dptr), u); dptr 4239 src/simh/scp.c fprintf (st, " %s%d ", sim_dname (dptr), u); dptr 4254 src/simh/scp.c fprint_capac (st, dptr, uptr); dptr 4256 src/simh/scp.c show_all_mods (st, dptr, uptr, MTAB_VUN, &toks); /* show unit mods */ dptr 4262 src/simh/scp.c const char *sprint_capac (DEVICE *dptr, UNIT *uptr) dptr 4273 src/simh/scp.c if (dptr->flags & DEV_SECTORS) { dptr 4277 src/simh/scp.c if ((dptr->dwidth / dptr->aincr) > 8) dptr 4299 src/simh/scp.c void fprint_capac (FILE *st, DEVICE *dptr, UNIT *uptr) dptr 4301 src/simh/scp.c fprintf (st, " %s", sprint_capac (dptr, uptr)); dptr 4307 src/simh/scp.c t_stat show_default_base_system_script (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 4374 src/simh/scp.c t_stat show_prom (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 4410 src/simh/scp.c t_stat show_buildinfo (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 4529 src/simh/scp.c t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5174 src/simh/scp.c DEVICE *dptr; dptr 5180 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) dptr 5181 src/simh/scp.c if (!only_enabled || !qdisable (dptr)) dptr 5182 src/simh/scp.c show_device (st, dptr, flag); dptr 5189 src/simh/scp.c DEVICE *dptr; dptr 5193 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) dptr 5194 src/simh/scp.c show_dev_logicals (st, dptr, NULL, 1, cptr); dptr 5198 src/simh/scp.c t_stat show_dev_logicals (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5200 src/simh/scp.c if (dptr->lname) dptr 5201 src/simh/scp.c fprintf (st, "%s -> %s\n", dptr->lname, dptr->name); dptr 5209 src/simh/scp.c DEVICE *dptr; dptr 5231 src/simh/scp.c if ((dptr = find_dev_from_unit (uptr)) != NULL) { dptr 5232 src/simh/scp.c fprintf (st, " %s", sim_dname (dptr)); dptr 5233 src/simh/scp.c if (dptr->numunits > 1) dptr 5234 src/simh/scp.c fprintf (st, " unit %d", (int32) (uptr - dptr->units)); dptr 5249 src/simh/scp.c t_stat show_time (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5257 src/simh/scp.c t_stat show_break (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5268 src/simh/scp.c t_stat show_dev_radix (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5270 src/simh/scp.c fprintf (st, "Radix=%d\n", dptr->dradix); dptr 5274 src/simh/scp.c t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5279 src/simh/scp.c if (dptr->flags & DEV_DEBUG) { dptr 5280 src/simh/scp.c if (dptr->dctrl == 0) dptr 5282 src/simh/scp.c else if (dptr->debflags == NULL) dptr 5285 src/simh/scp.c uint32 dctrl = dptr->dctrl; dptr 5288 src/simh/scp.c for (dep = dptr->debflags; (dctrl != 0) && (dep->name != NULL); dep++) { dptr 5306 src/simh/scp.c t_stat show_on (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5337 src/simh/scp.c DEVICE *dptr; dptr 5341 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) dptr 5342 src/simh/scp.c show_dev_modifiers (st, dptr, NULL, flag, cptr); dptr 5343 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) dptr 5344 src/simh/scp.c show_dev_modifiers (st, dptr, NULL, flag, cptr); dptr 5348 src/simh/scp.c t_stat show_dev_modifiers (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5350 src/simh/scp.c fprint_set_help (st, dptr); dptr 5354 src/simh/scp.c t_stat show_all_mods (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, int32 *toks) dptr 5359 src/simh/scp.c if (dptr->modifiers == NULL) dptr 5361 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { dptr 5372 src/simh/scp.c r = show_one_mod (st, dptr, uptr, mptr, NULL, 0); dptr 5378 src/simh/scp.c t_stat show_one_mod (FILE *st, DEVICE *dptr, UNIT *uptr, MTAB *mptr, dptr 5397 src/simh/scp.c DEVICE *dptr; dptr 5401 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) dptr 5402 src/simh/scp.c show_dev_show_commands (st, dptr, NULL, flag, cptr); dptr 5403 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) dptr 5404 src/simh/scp.c show_dev_show_commands (st, dptr, NULL, flag, cptr); dptr 5408 src/simh/scp.c t_stat show_dev_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 5410 src/simh/scp.c fprint_show_help (st, dptr); dptr 5426 src/simh/scp.c DEVICE *dptr = sim_dflt_dev; dptr 5434 src/simh/scp.c if (dptr == NULL) dptr 5436 src/simh/scp.c uptr = dptr->units; dptr 5454 src/simh/scp.c tptr = get_range (dptr, gbuf, &lo, &hi, dptr->aradix, max, 0); dptr 5519 src/simh/scp.c DEVICE *dptr; dptr 5530 src/simh/scp.c dptr = find_dev (gbuf); /* locate device */ dptr 5531 src/simh/scp.c if (dptr == NULL) /* found it? */ dptr 5533 src/simh/scp.c if (dptr->reset != NULL) dptr 5534 src/simh/scp.c return dptr->reset (dptr); dptr 5548 src/simh/scp.c DEVICE *dptr; dptr 5556 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { dptr 5557 src/simh/scp.c if (dptr->reset != NULL) { dptr 5558 src/simh/scp.c reason = dptr->reset (dptr); dptr 5563 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { dptr 5564 src/simh/scp.c if (dptr->reset != NULL) { dptr 5565 src/simh/scp.c reason = dptr->reset (dptr); dptr 5597 src/simh/scp.c DEVICE *dptr; dptr 5608 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ dptr 5609 src/simh/scp.c if (dptr == NULL) /* found dev? */ dptr 5615 src/simh/scp.c !(dptr->flags & DEV_DONTAUTO)) { /* and auto detachable */ dptr 5616 src/simh/scp.c r = scp_detach_unit (dptr, uptr); /* detach it */ dptr 5627 src/simh/scp.c return scp_attach_unit (dptr, uptr, gbuf); /* attach */ dptr 5632 src/simh/scp.c t_stat scp_attach_unit (DEVICE *dptr, UNIT *uptr, const char *cptr) dptr 5634 src/simh/scp.c if (dptr->attach != NULL) /* device routine? */ dptr 5635 src/simh/scp.c return dptr->attach (uptr, (CONST char *)cptr); /* call it */ dptr 5643 src/simh/scp.c DEVICE *dptr; dptr 5649 src/simh/scp.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 5665 src/simh/scp.c sim_printf ("%s: unit is read only (%s)\n", sim_dname (dptr), cptr); dptr 5674 src/simh/scp.c sim_printf ("%s: creating new file (%s)\n", sim_dname (dptr), cptr); dptr 5699 src/simh/scp.c sim_printf ("%s: unit is read only (%s)\n", sim_dname (dptr), cptr); dptr 5709 src/simh/scp.c sim_printf ("%s: creating new file (%s)\n", sim_dname (dptr), cptr); dptr 5716 src/simh/scp.c uint32 cap = ((uint32) uptr->capac) / dptr->aincr; /* effective size */ dptr 5718 src/simh/scp.c uptr->filebuf = calloc (cap, SZ_D (dptr)); /* allocate */ dptr 5722 src/simh/scp.c sim_printf ("%s: buffering file in memory\n", sim_dname (dptr)); dptr 5725 src/simh/scp.c SZ_D (dptr), cap, uptr->fileref); dptr 5745 src/simh/scp.c DEVICE *dptr; dptr 5756 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ dptr 5757 src/simh/scp.c if (dptr == NULL) /* found dev? */ dptr 5761 src/simh/scp.c return scp_detach_unit (dptr, uptr); /* detach */ dptr 5780 src/simh/scp.c DEVICE *dptr; dptr 5788 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { /* loop thru dev */ dptr 5789 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { /* loop thru units */ dptr 5790 src/simh/scp.c uptr = (dptr->units) + j; dptr 5792 src/simh/scp.c (shutdown && dptr->detach && /* shutdown, spec rtn, */ dptr 5794 src/simh/scp.c r = scp_detach_unit (dptr, uptr); /* detach unit */ dptr 5806 src/simh/scp.c t_stat scp_detach_unit (DEVICE *dptr, UNIT *uptr) dptr 5808 src/simh/scp.c if (dptr->detach != NULL) /* device routine? */ dptr 5809 src/simh/scp.c return dptr->detach (uptr); dptr 5817 src/simh/scp.c DEVICE *dptr; dptr 5829 src/simh/scp.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 5832 src/simh/scp.c uint32 cap = (uptr->hwmark + dptr->aincr - 1) / dptr->aincr; dptr 5835 src/simh/scp.c sim_printf ("%s: writing buffer to file\n", sim_dname (dptr)); dptr 5838 src/simh/scp.c sim_fwrite (uptr->filebuf, SZ_D (dptr), cap, uptr->fileref); dptr 5840 src/simh/scp.c sim_printf ("%s: I/O error - %s", sim_dname (dptr), strerror (errno)); dptr 5858 src/simh/scp.c const char *sim_dname (DEVICE *dptr) dptr 5860 src/simh/scp.c return (dptr ? (dptr->lname? dptr->lname: dptr->name) : ""); dptr 5889 src/simh/scp.c DEVICE *dptr; dptr 5987 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ dptr 5988 src/simh/scp.c if (dptr == NULL) /* found dev? */ dptr 5992 src/simh/scp.c if (dptr->boot == NULL) /* can it boot? */ dptr 5999 src/simh/scp.c unitno = (int32) (uptr - dptr->units); /* recover unit# */ dptr 6002 src/simh/scp.c if ((r = dptr->boot (unitno, dptr)) != SCPE_OK) /* boot device */ dptr 6016 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* reposition all */ dptr 6017 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { /* seq devices */ dptr 6018 src/simh/scp.c uptr = dptr->units + j; dptr 6126 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* flush attached files */ dptr 6127 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { /* if not buffered in mem */ dptr 6128 src/simh/scp.c uptr = dptr->units + j; dptr 6201 src/simh/scp.c void fprint_stopped_gen (FILE *st, t_stat v, REG *pc, DEVICE *dptr) dptr 6224 src/simh/scp.c sim_vm_fprint_addr (st, dptr, (t_addr) pcval); /* call it to print the PC address */ dptr 6227 src/simh/scp.c if ((dptr != NULL) && (dptr->examine != NULL)) { dptr 6230 src/simh/scp.c for (i = 0, k = (t_addr) pcval; i < sim_emax; i++, k = k + dptr->aincr) { dptr 6231 src/simh/scp.c if ((r = dptr->examine (&sim_eval[i], k, dptr->units, SWMASK ('V')|SIM_SW_STOP)) != SCPE_OK) dptr 6237 src/simh/scp.c fprint_val (st, sim_eval[0], dptr->dradix, dptr->dwidth, PV_RZRO); dptr 6461 src/simh/scp.c t_addr low, t_addr high, DEVICE *dptr, UNIT *uptr) dptr 6468 src/simh/scp.c mask = (t_addr) width_mask[dptr->awidth]; dptr 6472 src/simh/scp.c reason = get_aval (i, dptr, uptr); /* get data */ dptr 6476 src/simh/scp.c i = i + dptr->aincr; /* sch fails, incr */ dptr 6479 src/simh/scp.c reason = ex_addr (ofile, flag, i, dptr, uptr); dptr 6483 src/simh/scp.c ex_addr (sim_log, flag, i, dptr, uptr); dptr 6485 src/simh/scp.c else reason = 1 - dptr->aincr; /* no, dflt incr */ dptr 6487 src/simh/scp.c reason = dep_addr (flag, cptr, i, dptr, uptr, reason); dptr 6710 src/simh/scp.c t_stat ex_addr (FILE *ofile, int32 flag, t_addr addr, DEVICE *dptr, UNIT *uptr) dptr 6716 src/simh/scp.c sim_vm_fprint_addr (ofile, dptr, addr); dptr 6717 src/simh/scp.c else fprint_val (ofile, addr, dptr->aradix, dptr->awidth, PV_LEFT); dptr 6720 src/simh/scp.c return (1 - dptr->aincr); dptr 6722 src/simh/scp.c GET_RADIX (rdx, dptr->dradix); dptr 6724 src/simh/scp.c fprint_val (ofile, sim_eval[0], rdx, dptr->dwidth, PV_RZRO); dptr 6725 src/simh/scp.c reason = 1 - dptr->aincr; dptr 6744 src/simh/scp.c t_stat get_aval (t_addr addr, DEVICE *dptr, UNIT *uptr) dptr 6752 src/simh/scp.c if ((dptr == NULL) || (uptr == NULL)) dptr 6754 src/simh/scp.c mask = width_mask[dptr->dwidth]; dptr 6757 src/simh/scp.c for (i = 0, j = addr; i < sim_emax; i++, j = j + dptr->aincr) { dptr 6758 src/simh/scp.c if (dptr->examine != NULL) { dptr 6759 src/simh/scp.c reason = dptr->examine (&sim_eval[i], j, uptr, sim_switches); dptr 6772 src/simh/scp.c sz = SZ_D (dptr); dptr 6773 src/simh/scp.c loc = j / dptr->aincr; dptr 6813 src/simh/scp.c t_stat dep_addr (int32 flag, const char *cptr, t_addr addr, DEVICE *dptr, dptr 6823 src/simh/scp.c if (dptr == NULL) dptr 6836 src/simh/scp.c mask = width_mask[dptr->dwidth]; dptr 6838 src/simh/scp.c GET_RADIX (rdx, dptr->dradix); dptr 6845 src/simh/scp.c count = (1 - reason + (dptr->aincr - 1)) / dptr->aincr; dptr 6847 src/simh/scp.c for (i = 0, j = addr; i < count; i++, j = j + dptr->aincr) { dptr 6849 src/simh/scp.c if (dptr->deposit != NULL) { dptr 6850 src/simh/scp.c r = dptr->deposit (sim_eval[i], j, uptr, sim_switches); dptr 6861 src/simh/scp.c sz = SZ_D (dptr); dptr 6862 src/simh/scp.c loc = j / dptr->aincr; dptr 6887 src/simh/scp.c DEVICE *dptr = sim_dflt_dev; dptr 6892 src/simh/scp.c GET_RADIX (rdx, dptr->dradix); dptr 6897 src/simh/scp.c if ((r = parse_sym ((CONST char *)cptr, 0, dptr->units, sim_eval, sim_switches)) > 0) { dptr 6898 src/simh/scp.c sim_eval[0] = get_uint (cptr, rdx, width_mask[dptr->dwidth], &r); dptr 6905 src/simh/scp.c if ((r = fprint_sym (stdout, a, &sim_eval[i], dptr->units, sim_switches)) > 0) dptr 6906 src/simh/scp.c r = fprint_val (stdout, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); dptr 6908 src/simh/scp.c if ((r = fprint_sym (sim_log, a, &sim_eval[i], dptr->units, sim_switches)) > 0) dptr 6909 src/simh/scp.c r = fprint_val (sim_log, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); dptr 6914 src/simh/scp.c else a = a + dptr->aincr; dptr 6915 src/simh/scp.c i = a / dptr->aincr; dptr 7177 src/simh/scp.c CONST char *get_range (DEVICE *dptr, CONST char *cptr, t_addr *lo, t_addr *hi, dptr 7202 src/simh/scp.c if (dptr && sim_vm_parse_addr) /* get low */ dptr 7203 src/simh/scp.c *lo = sim_vm_parse_addr (dptr, cptr, &tptr); dptr 7212 src/simh/scp.c if (dptr && sim_vm_parse_addr) /* get high */ dptr 7213 src/simh/scp.c *hi = sim_vm_parse_addr (dptr, cptr, &tptr); dptr 7437 src/simh/scp.c DEVICE *dptr; dptr 7441 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { dptr 7442 src/simh/scp.c if ((strcmp (cptr, dptr->name) == 0) || dptr 7443 src/simh/scp.c (dptr->lname && dptr 7444 src/simh/scp.c (strcmp (cptr, dptr->lname) == 0))) dptr 7445 src/simh/scp.c return dptr; dptr 7447 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { dptr 7448 src/simh/scp.c if ((strcmp (cptr, dptr->name) == 0) || dptr 7449 src/simh/scp.c (dptr->lname && dptr 7450 src/simh/scp.c (strcmp (cptr, dptr->lname) == 0))) dptr 7451 src/simh/scp.c return dptr; dptr 7473 src/simh/scp.c DEVICE *dptr; dptr 7478 src/simh/scp.c if ((dptr = find_dev (cptr))) { /* exact match? */ dptr 7479 src/simh/scp.c if (qdisable (dptr)) /* disabled? */ dptr 7481 src/simh/scp.c *uptr = dptr->units; /* unit 0 */ dptr 7482 src/simh/scp.c return dptr; dptr 7485 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* base + unit#? */ dptr 7486 src/simh/scp.c if (qdisable (dptr)) /* device disabled? */ dptr 7488 src/simh/scp.c if (dptr->numunits && /* LINTED E_EQUALITY_NOT_ASSIGNMENT*/ /* any units? */ dptr 7489 src/simh/scp.c (((nptr = dptr->name) && dptr 7491 src/simh/scp.c ((nptr = dptr->lname) && dptr 7495 src/simh/scp.c if (qdisable (dptr)) /* disabled? */ dptr 7497 src/simh/scp.c u = (uint32) get_uint (tptr, 10, dptr->numunits - 1, &r); dptr 7501 src/simh/scp.c *uptr = dptr->units + u; dptr 7502 src/simh/scp.c return dptr; dptr 7505 src/simh/scp.c for (u = 0; u < dptr->numunits; u++) { dptr 7506 src/simh/scp.c if (0 == strcmp (cptr, sim_uname (&dptr->units[u]))) { dptr 7507 src/simh/scp.c *uptr = &dptr->units[u]; dptr 7508 src/simh/scp.c return dptr; dptr 7521 src/simh/scp.c t_stat sim_register_internal_device (DEVICE *dptr) dptr 7526 src/simh/scp.c if (sim_devices[i] == dptr) dptr 7529 src/simh/scp.c if (sim_internal_devices[i] == dptr) dptr 7545 src/simh/scp.c sim_internal_devices[sim_internal_device_count-1] = dptr; dptr 7560 src/simh/scp.c DEVICE *dptr; dptr 7565 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { dptr 7566 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { dptr 7567 src/simh/scp.c if (uptr == (dptr->units + j)) dptr 7568 src/simh/scp.c return dptr; dptr 7572 src/simh/scp.c dptr = sim_internal_devices[i]; dptr 7573 src/simh/scp.c for (j = 0; j < dptr->numunits; j++) { dptr 7574 src/simh/scp.c if (uptr == (dptr->units + j)) dptr 7575 src/simh/scp.c return dptr; dptr 7583 src/simh/scp.c t_bool qdisable (DEVICE *dptr) dptr 7585 src/simh/scp.c return (dptr->flags & DEV_DIS? TRUE: FALSE); dptr 7603 src/simh/scp.c DEVICE *dptr; dptr 7607 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != 0; i++) { /* all dev */ dptr 7608 src/simh/scp.c if (dptr->flags & DEV_DIS) /* skip disabled */ dptr 7610 src/simh/scp.c if ((rptr = find_reg (cptr, optr, dptr))) { /* found? */ dptr 7614 src/simh/scp.c *gdptr = dptr; /* save unit */ dptr 7631 src/simh/scp.c REG *find_reg (CONST char *cptr, CONST char **optr, DEVICE *dptr) dptr 7637 src/simh/scp.c if ((cptr == NULL) || (dptr == NULL) || (dptr->registers == NULL)) dptr 7644 src/simh/scp.c for (rptr = dptr->registers; rptr->name != NULL; rptr++) { dptr 8870 src/simh/scp.c DEVICE *dptr; dptr 8877 src/simh/scp.c dptr = sim_dflt_dev; dptr 8878 src/simh/scp.c if (dptr == NULL) dptr 8884 src/simh/scp.c sim_vm_fprint_addr (st, dptr, loc); dptr 8885 src/simh/scp.c else fprint_val (st, loc, dptr->aradix, dptr->awidth, PV_LEFT); dptr 8903 src/simh/scp.c sim_vm_fprint_addr (st, dptr, loc); dptr 8904 src/simh/scp.c else fprint_val (st, loc, dptr->aradix, dptr->awidth, PV_LEFT); dptr 9309 src/simh/scp.c sim_data_trace(exp->dptr, exp->dptr->units, (const uint8 *)match, "", strlen(match)+1, "Expect Match String", exp->dbit); dptr 9356 src/simh/scp.c sim_data_trace(exp->dptr, exp->dptr->units, (const uint8 *)match, "", strlen(match)+1, "Expect Match String", exp->dbit); dptr 9436 src/simh/scp.c if (exp->dptr && exp->dbit) dptr 9437 src/simh/scp.c fprintf (st, "Debugging via: SET %s DEBUG%s%s\n", sim_dname(exp->dptr), exp->dptr->debflags ? "=" : "", exp->dptr->debflags ? get_dbg_verb (exp->dbit, exp->dptr) : ""); dptr 9490 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { dptr 9494 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[0:%d]: %s\n", exp->buf_ins, estr); dptr 9495 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Against Match Data: %s\n", mstr); dptr 9502 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { dptr 9506 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_size-(ep->size-exp->buf_ins), ep->size-exp->buf_ins, estr); dptr 9507 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Against Match Data: %s\n", mstr); dptr 9516 src/simh/scp.c if (sim_deb && exp->dptr && (exp->dptr->dctrl & exp->dbit)) { dptr 9520 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_ins-ep->size, ep->size, estr); dptr 9521 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Against Match Data: %s\n", mstr); dptr 9533 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Buffer wrapping\n"); dptr 9536 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Matched expect pattern!\n"); dptr 9539 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Waiting for %d more match%s before stopping\n", dptr 9546 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Initiating actions: %s\n", ep->act); dptr 9549 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "No actions specified, stopping...\n"); dptr 9639 src/simh/scp.c if (snd->dptr && snd->dbit) dptr 9640 src/simh/scp.c fprintf (st, "Debugging via: SET %s DEBUG%s%s\n", sim_dname(snd->dptr), snd->dptr->debflags ? "=" : "", snd->dptr->debflags ? get_dbg_verb (snd->dbit, snd->dptr) : ""); dptr 9651 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Too soon to inject next byte\n"); dptr 9659 src/simh/scp.c sim_debug (snd->dbit, snd->dptr, "Byte value: 0x%02X%s injected\n", *stat & 0xFF, dstr); dptr 9715 src/simh/scp.c static const char *get_dbg_verb (uint32 dbits, DEVICE* dptr) dptr 9722 src/simh/scp.c if (dptr->debflags == 0) dptr 9725 src/simh/scp.c dbits &= dptr->dctrl; /* Look for just the bits tha matched */ dptr 9729 src/simh/scp.c while ((offset < 32) && dptr->debflags[offset].name) { dptr 9730 src/simh/scp.c if (dptr->debflags[offset].mask == dbits) /* All Bits Match */ dptr 9731 src/simh/scp.c return dptr->debflags[offset].name; dptr 9732 src/simh/scp.c if (dptr->debflags[offset].mask & dbits) dptr 9733 src/simh/scp.c some_match = dptr->debflags[offset].name; dptr 9741 src/simh/scp.c static const char *sim_debug_prefix (uint32 dbits, DEVICE* dptr) dptr 9743 src/simh/scp.c const char* debug_type = get_dbg_verb (dbits, dptr); dptr 9799 src/simh/scp.c sprintf(debug_line_prefix, "DBG(%s%s%.0f%s)%s> %s %s: ", tim_t, tim_a, sim_gtime(), pc_s, "", dptr->name, debug_type); dptr 9847 src/simh/scp.c void sim_debug_bits_hdr(uint32 dbits, DEVICE* dptr, const char *header, dptr 9850 src/simh/scp.c if (sim_deb && dptr && (dptr->dctrl & dbits)) { dptr 9852 src/simh/scp.c fprintf(sim_deb, "%s", sim_debug_prefix(dbits, dptr)); /* print prefix if required */ dptr 9861 src/simh/scp.c void sim_debug_bits(uint32 dbits, DEVICE* dptr, BITFIELD* bitdefs, dptr 9864 src/simh/scp.c sim_debug_bits_hdr(dbits, dptr, NULL, bitdefs, before, after, terminate); dptr 9995 src/simh/scp.c DEVICE *dptr = (DEVICE *)vdptr; dptr 9996 src/simh/scp.c if (sim_deb && dptr && (dbits == 0 || (dptr->dctrl & dbits))) { dptr 10002 src/simh/scp.c const char* debug_prefix = sim_debug_prefix(dbits, dptr); /* prefix to print if required */ dptr 10059 src/simh/scp.c void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason) dptr 10062 src/simh/scp.c if (sim_deb && (dptr->dctrl & reason)) { dptr 10063 src/simh/scp.c sim_debug (reason, dptr, "%s %s %slen: %08X\n", sim_uname(uptr), txt, position, (unsigned int)len); dptr 10110 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), i-1); dptr 10153 src/simh/scp.c sim_debug (reason, dptr, "%04X%-48s %s%s%s\n", i, outbuf, strbuf, ebcdicbuf, rad50buf); dptr 10156 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), (unsigned int)(len-1)); dptr 10270 src/simh/scp.c static TOPIC *buildHelp (TOPIC *topic, DEVICE *dptr, dptr 10328 src/simh/scp.c if (dptr) { dptr 10330 src/simh/scp.c n = uptr? uptr - dptr->units: 0; dptr 10331 src/simh/scp.c sprintf (buf, "%s%u", dptr->name, (int)n); dptr 10336 src/simh/scp.c if (dptr != NULL) dptr 10337 src/simh/scp.c appendText (topic, dptr->name, strlen (dptr->name)); dptr 10587 src/simh/scp.c static void displayMagicTopic (FILE *st, DEVICE *dptr, TOPIC *topic) dptr 10619 src/simh/scp.c fprint_reg_help (tmp, dptr) ; dptr 10624 src/simh/scp.c fprint_set_help (tmp, dptr); dptr 10629 src/simh/scp.c fprint_show_help (tmp, dptr); dptr 10654 src/simh/scp.c static t_stat displayFlatHelp (FILE *st, DEVICE *dptr, dptr 10662 src/simh/scp.c displayMagicTopic (st, dptr, topic); dptr 10676 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic->children[i], ap); dptr 10719 src/simh/scp.c t_stat scp_vhelp (FILE *st, DEVICE *dptr, dptr 10763 src/simh/scp.c if (dptr) { dptr 10764 src/simh/scp.c p = dptr->name; dptr 10765 src/simh/scp.c flat_help = (dptr->flags & DEV_FLATHELP) != 0; dptr 10817 src/simh/scp.c (void) buildHelp (&top, dptr, uptr, help, ap); dptr 10832 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic, ap); dptr 10849 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic, ap); dptr 10864 src/simh/scp.c displayMagicTopic (st, dptr, topic); dptr 10927 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic, ap); dptr 10978 src/simh/scp.c t_stat scp_help (FILE *st, DEVICE *dptr, dptr 10986 src/simh/scp.c r = scp_vhelp (st, dptr, uptr, flag, help, cptr, ap); dptr 129 src/simh/scp.h t_stat assign_device (DEVICE *dptr, const char *cptr); dptr 130 src/simh/scp.h t_stat deassign_device (DEVICE *dptr); dptr 133 src/simh/scp.h const char *sim_dname (DEVICE *dptr); dptr 134 src/simh/scp.h const char *sim_uname (UNIT *dptr); dptr 149 src/simh/scp.h CONST char *get_range (DEVICE *dptr, CONST char *cptr, t_addr *lo, t_addr *hi, dptr 159 src/simh/scp.h const char *sprint_capac (DEVICE *dptr, UNIT *uptr); dptr 161 src/simh/scp.h void fprint_reg_help (FILE *st, DEVICE *dptr); dptr 162 src/simh/scp.h void fprint_set_help (FILE *st, DEVICE *dptr); dptr 163 src/simh/scp.h void fprint_show_help (FILE *st, DEVICE *dptr); dptr 168 src/simh/scp.h t_stat sim_register_internal_device (DEVICE *dptr); dptr 170 src/simh/scp.h REG *find_reg (CONST char *ptr, CONST char **optr, DEVICE *dptr); dptr 174 src/simh/scp.h t_stat get_aval (t_addr addr, DEVICE *dptr, UNIT *uptr); dptr 193 src/simh/scp.h t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 194 src/simh/scp.h t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 195 src/simh/scp.h t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 200 src/simh/scp.h void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason); dptr 201 src/simh/scp.h void sim_debug_bits_hdr (uint32 dbits, DEVICE* dptr, const char *header, dptr 203 src/simh/scp.h void sim_debug_bits (uint32 dbits, DEVICE* dptr, BITFIELD* bitdefs, dptr 205 src/simh/scp.h void _sim_debug (uint32 dbits, DEVICE* dptr, const char *fmt, ...) GCC_FMT_ATTR(3, 4); dptr 206 src/simh/scp.h # define sim_debug(dbits, dptr, ...) do { if ((sim_deb != NULL) && ((dptr != NULL) && ((dptr)->dctrl & dbits))) _sim_debug (dbits, dptr, __VA_ARGS__);} while (0) dptr 207 src/simh/scp.h void fprint_stopped_gen (FILE *st, t_stat v, REG *pc, DEVICE *dptr); dptr 211 src/simh/scp.h t_stat scp_help (FILE *st, DEVICE *dptr, dptr 213 src/simh/scp.h t_stat scp_vhelp (FILE *st, DEVICE *dptr, dptr 215 src/simh/scp.h t_stat scp_helpFromFile (FILE *st, DEVICE *dptr, dptr 217 src/simh/scp.h t_stat scp_vhelpFromFile (FILE *st, DEVICE *dptr, dptr 278 src/simh/scp.h extern void (*sim_vm_sprint_addr) (char *buf, DEVICE *dptr, t_addr addr); dptr 279 src/simh/scp.h extern void (*sim_vm_fprint_addr) (FILE *st, DEVICE *dptr, t_addr addr); dptr 280 src/simh/scp.h extern t_addr (*sim_vm_parse_addr) (DEVICE *dptr, CONST char *cptr, CONST char **tptr); dptr 136 src/simh/sim_console.c static t_stat sim_con_reset (DEVICE *dptr); /* console reset routine */ dptr 204 src/simh/sim_console.c static t_stat sim_con_reset (DEVICE *dptr) dptr 206 src/simh/sim_console.c return sim_con_poll_svc (&dptr->units[0]); /* establish polling as needed */ dptr 306 src/simh/sim_console.c t_stat sim_show_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 314 src/simh/sim_console.c show_con_tab[i].action (st, dptr, uptr, show_con_tab[i].arg, cptr); dptr 320 src/simh/sim_console.c shptr->action (st, dptr, uptr, shptr->arg, NULL); dptr 328 src/simh/sim_console.c t_stat sim_rem_con_reset (DEVICE *dptr); /* remote console reset routine */ dptr 395 src/simh/sim_console.c t_stat sim_show_remote_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 1036 src/simh/sim_console.c t_stat sim_rem_con_reset (DEVICE *dptr) dptr 1045 src/simh/sim_console.c sim_activate_after (&dptr->units[1], 100000); /* continue polling for open sessions */ dptr 1046 src/simh/sim_console.c return sim_rem_con_poll_svc (&dptr->units[0]); /* establish polling as needed */ dptr 1226 src/simh/sim_console.c DEVICE *dptr = sim_devices[0]; dptr 1232 src/simh/sim_console.c if (dptr->dradix == 16) rdx = 16; dptr 1244 src/simh/sim_console.c t_stat sim_show_kmap (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 1256 src/simh/sim_console.c DEVICE *dptr = sim_devices[0]; dptr 1262 src/simh/sim_console.c if (dptr->dradix == 16) rdx = 16; dptr 1279 src/simh/sim_console.c t_stat sim_show_cons_speed (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 1336 src/simh/sim_console.c t_stat sim_show_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 1456 src/simh/sim_console.c t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 1471 src/simh/sim_console.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { dptr 1472 src/simh/sim_console.c if (!(dptr->flags & DEV_DIS) && dptr 1473 src/simh/sim_console.c (dptr->flags & DEV_DEBUG) && dptr 1474 src/simh/sim_console.c (dptr->dctrl)) { dptr 1475 src/simh/sim_console.c fprintf (st, "Device: %-6s ", dptr->name); dptr 1476 src/simh/sim_console.c show_dev_debug (st, dptr, NULL, 0, NULL); dptr 1479 src/simh/sim_console.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { dptr 1480 src/simh/sim_console.c if (!(dptr->flags & DEV_DIS) && dptr 1481 src/simh/sim_console.c (dptr->flags & DEV_DEBUG) && dptr 1482 src/simh/sim_console.c (dptr->dctrl)) { dptr 1483 src/simh/sim_console.c fprintf (st, "Device: %-6s ", dptr->name); dptr 1484 src/simh/sim_console.c show_dev_debug (st, dptr, NULL, 0, NULL); dptr 1825 src/simh/sim_console.c t_stat sim_show_cons_send_input (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 95 src/simh/sim_console.h t_stat sim_show_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 96 src/simh/sim_console.h t_stat sim_show_remote_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 97 src/simh/sim_console.h t_stat sim_show_kmap (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 98 src/simh/sim_console.h t_stat sim_show_telnet (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 99 src/simh/sim_console.h t_stat sim_show_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 100 src/simh/sim_console.h t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 101 src/simh/sim_console.h t_stat sim_show_pchar (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 102 src/simh/sim_console.h t_stat sim_show_cons_speed (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 103 src/simh/sim_console.h t_stat sim_show_cons_buff (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 104 src/simh/sim_console.h t_stat sim_show_cons_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 105 src/simh/sim_console.h t_stat sim_show_cons_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 112 src/simh/sim_console.h t_stat sim_show_cons_send_input (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 354 src/simh/sim_defs.h t_stat (*help)(FILE *st, DEVICE *dptr, dptr 357 src/simh/sim_defs.h t_stat (*attach_help)(FILE *st, DEVICE *dptr, dptr 361 src/simh/sim_defs.h const char *(*description)(DEVICE *dptr); /* Device Description */ dptr 397 src/simh/sim_defs.h # define DEV_TYPE(dptr) ((dptr)->flags & DEV_TYPEMASK) dptr 534 src/simh/sim_defs.h t_stat (*action)(DEVICE *dptr, UNIT *uptr, dptr 542 src/simh/sim_defs.h t_stat (*action)(FILE *st, DEVICE *dptr, dptr 632 src/simh/sim_defs.h DEVICE *dptr; /* Device (for Debug) */ dptr 647 src/simh/sim_defs.h DEVICE *dptr; /* Device (for Debug) */ dptr 87 src/simh/sim_disk.c DEVICE *dptr; /* Device for unit (access to debug flags) */ dptr 156 src/simh/sim_disk.c DEVICE *dptr = find_dev_from_unit (uptr); dptr 165 src/simh/sim_disk.c uptr->capac = (t_addr)((cap * ((t_offset) 1000000))/((dptr->flags & DEV_SECTORS) ? 512 : 1)); dptr 174 src/simh/sim_disk.c DEVICE *dptr = find_dev_from_unit (uptr); dptr 175 src/simh/sim_disk.c t_offset capac = ((t_offset)uptr->capac)*((dptr->flags & DEV_SECTORS) ? 512 : 1); dptr 177 src/simh/sim_disk.c if ((dptr->dwidth / dptr->aincr) == 16) dptr 243 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); dptr 267 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_rdsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); dptr 270 src/simh/sim_disk.c (lba >= (uptr->capac*ctx->capac_factor)/(ctx->sector_size/((ctx->dptr->flags & DEV_SECTORS) ? 512 : 1)))) {/* beyond the end of the disk */ dptr 343 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "_sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); dptr 366 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_wrsect(unit=%lu, lba=0x%X, sects=%lu)\n", (unsigned long)(uptr-ctx->dptr->units), lba, (unsigned long)sects); dptr 369 src/simh/sim_disk.c DEVICE *dptr = find_dev_from_unit (uptr); dptr 370 src/simh/sim_disk.c uint32 capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* capacity units (word: 2, byte: 1) */ dptr 371 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(ctx->sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 385 src/simh/sim_disk.c uint32 save_dctrl = dptr->dctrl; dptr 388 src/simh/sim_disk.c sim_printf ("\n%s%lu: Write Address Verification Error on lbn %lu(0x%X) of %lu(0x%X).\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((unsigned long)lba+(unsigned long)sect), (int)((int)lba+(int)sect), (unsigned long)total_sectors, (int)total_sectors); dptr 389 src/simh/sim_disk.c dptr->dctrl = 0xFFFFFFFF; dptr 392 src/simh/sim_disk.c dptr->dctrl = save_dctrl; dptr 651 src/simh/sim_disk.c DEVICE *dptr; dptr 663 src/simh/sim_disk.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 665 src/simh/sim_disk.c capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* save capacity units (word: 2, byte: 1) */ dptr 668 src/simh/sim_disk.c uptr->capac = (t_addr)(temp_capac/(capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 724 src/simh/sim_disk.c sim_printf ("%s%lu: '%s' Contains ODS%lu File system:\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), uptr->filename, (unsigned long)Home.hm2_b_struclev); dptr 725 src/simh/sim_disk.c sim_printf ("%s%lu: Volume Name: %12.12s ", sim_dname (dptr), (unsigned long)(uptr-dptr->units), Home.hm2_t_volname); dptr 740 src/simh/sim_disk.c DEVICE *dptr; dptr 753 src/simh/sim_disk.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 804 src/simh/sim_disk.c ctx->capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* save capacity units (word: 2, byte: 1) */ dptr 806 src/simh/sim_disk.c ctx->dptr = dptr; /* save DEVICE pointer */ dptr 808 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_attach(unit=%lu,filename='%s')\n", (unsigned long)(uptr-ctx->dptr->units), uptr->filename); dptr 821 src/simh/sim_disk.c sim_printf ("%s%lu: unit is read only (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); dptr 835 src/simh/sim_disk.c sim_printf ("%s%lu: unit is read only (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); dptr 841 src/simh/sim_disk.c uptr->fileref = create_function (cptr, ((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1));/* create new file */ dptr 847 src/simh/sim_disk.c sim_printf ("%s%lu: creating new file (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); dptr 865 src/simh/sim_disk.c r = sim_disk_wrsect (uptr, (t_lba)(((((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)) - ctx->sector_size)/ctx->sector_size), secbuf, NULL, 1); /* Write Last Sector */ dptr 877 src/simh/sim_disk.c uint32 capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* capacity units (word: 2, byte: 1) */ dptr 879 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 904 src/simh/sim_disk.c sim_printf ("%s%lu: Initialized To Sector Address %luMB. %lu%% complete.\r", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((((float)lba)*sector_size)/1000000), (unsigned long)((((float)lba)*100)/total_sectors)); dptr 907 src/simh/sim_disk.c sim_printf ("%s%lu: Initialized To Sector Address %luMB. 100%% complete.\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((((float)lba)*sector_size)/1000000)); dptr 915 src/simh/sim_disk.c uint32 capac_factor = ((dptr->dwidth / dptr->aincr) == 16) ? 2 : 1; /* capacity units (word: 2, byte: 1) */ dptr 917 src/simh/sim_disk.c t_lba total_sectors = (t_lba)((uptr->capac*capac_factor)/(sector_size/((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 942 src/simh/sim_disk.c uint32 save_dctrl = dptr->dctrl; dptr 945 src/simh/sim_disk.c sim_printf ("\n%s%lu: Verification Error on lbn %lu(0x%X) of %lu(0x%X).\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((unsigned long)lba+(unsigned long)sect), (int)((int)lba+(int)sect), (unsigned long)total_sectors, (int)total_sectors); dptr 946 src/simh/sim_disk.c dptr->dctrl = 0xFFFFFFFF; dptr 949 src/simh/sim_disk.c dptr->dctrl = save_dctrl; dptr 955 src/simh/sim_disk.c sim_printf ("%s%lu: Verified containing Sector Address %luMB. %lu%% complete.\r", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((((float)lba)*sector_size)/1000000), (unsigned long)((((float)lba)*100)/total_sectors)); dptr 958 src/simh/sim_disk.c sim_printf ("%s%lu: Verified containing Sector Address %luMB. 100%% complete.\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), (unsigned long)((((float)lba)*sector_size)/1000000)); dptr 970 src/simh/sim_disk.c (filesystem_capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1)))) { dptr 972 src/simh/sim_disk.c uptr->capac = (t_addr)(filesystem_capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 973 src/simh/sim_disk.c sim_printf ("%s%lu: The file system on the disk %s is larger than simulated device (%s > ", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr, sprint_capac (dptr, uptr)); dptr 975 src/simh/sim_disk.c sim_printf ("%s)\n", sprint_capac (dptr, uptr)); dptr 980 src/simh/sim_disk.c if ((capac < (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))) && (DKUF_F_STD != DK_GET_FMT (uptr))) { dptr 982 src/simh/sim_disk.c uptr->capac = (t_addr)(capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 983 src/simh/sim_disk.c sim_printf ("%s%lu: non expandable disk %s is smaller than simulated device (%s < ", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr, sprint_capac (dptr, uptr)); dptr 985 src/simh/sim_disk.c sim_printf ("%s)\n", sprint_capac (dptr, uptr)); dptr 995 src/simh/sim_disk.c if ((capac > (((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))) || dptr 997 src/simh/sim_disk.c uptr->capac = (t_addr)(capac/(ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1))); dptr 1054 src/simh/sim_disk.c t_stat sim_disk_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr) dptr 1056 src/simh/sim_disk.c fprintf (st, "%s Disk Attach Help\n\n", dptr->name); dptr 1061 src/simh/sim_disk.c if (0 == (uptr-dptr->units)) { dptr 1062 src/simh/sim_disk.c if (dptr->numunits > 1) { dptr 1065 src/simh/sim_disk.c for (i=0; i < dptr->numunits; ++i) dptr 1066 src/simh/sim_disk.c if (dptr->units[i].flags & UNIT_ATTABLE) dptr 1067 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s%lu diskfile\n", dptr->name, (unsigned long)i); dptr 1070 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s diskfile\n", dptr->name); dptr 1073 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s diskfile\n\n", dptr->name); dptr 1074 src/simh/sim_disk.c fprintf (st, "\n%s attach command switches\n", dptr->name); dptr 1099 src/simh/sim_disk.c sim_debug (ctx->dbit, ctx->dptr, "sim_disk_reset(unit=%lu)\n", (unsigned long)(uptr-ctx->dptr->units)); dptr 1140 src/simh/sim_disk.c if (sim_deb && (ctx->dptr->dctrl & reason)) { dptr 1144 src/simh/sim_disk.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), pos, len, txt, reason); dptr 73 src/simh/sim_disk.h t_stat sim_disk_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr); dptr 110 src/simh/sim_fio.c unsigned char by, *sptr, *dptr; dptr 114 src/simh/sim_fio.c for (j = 0, dptr = sptr = (unsigned char *) bptr; /* loop on items */ dptr 118 src/simh/sim_fio.c *sptr++ = *(dptr + k); dptr 119 src/simh/sim_fio.c *(dptr + k) = by; dptr 121 src/simh/sim_fio.c sptr = dptr = dptr + size; /* next item */ dptr 143 src/simh/sim_fio.c unsigned char *dptr = (unsigned char *)dbuf; dptr 146 src/simh/sim_fio.c memcpy (dptr, sptr, size * count); dptr 151 src/simh/sim_fio.c *(dptr + k) = *sptr++; dptr 152 src/simh/sim_fio.c dptr = dptr + size; dptr 80 src/simh/sim_fio.h void sim_buf_copy_swapped (void *dptr, const void *bptr, size_t size, size_t count); dptr 117 src/simh/sim_tape.c DEVICE *dptr; /* Device for unit (access to debug flags) */ dptr 136 src/simh/sim_tape.c DEVICE *dptr; dptr 138 src/simh/sim_tape.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 140 src/simh/sim_tape.c return sim_tape_attach_ex (uptr, cptr, (dptr->flags & DEV_DEBUG) ? 0xFFFFFFFF : 0, 0); dptr 147 src/simh/sim_tape.c DEVICE *dptr; dptr 152 src/simh/sim_tape.c if ((dptr = find_dev_from_unit (uptr)) == NULL) dptr 216 src/simh/sim_tape.c ctx->dptr = dptr; /* save DEVICE pointer */ dptr 275 src/simh/sim_tape.c t_stat sim_tape_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr) dptr 277 src/simh/sim_tape.c fprintf (st, "%s Tape Attach Help\n\n", dptr->name); dptr 278 src/simh/sim_tape.c if (0 == (uptr-dptr->units)) { dptr 279 src/simh/sim_tape.c if (dptr->numunits > 1) { dptr 282 src/simh/sim_tape.c for (i=0; i < dptr->numunits; ++i) dptr 283 src/simh/sim_tape.c if (dptr->units[i].flags & UNIT_ATTABLE) dptr 284 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s%lu tapefile\n\n", dptr->name, (unsigned long)i); dptr 287 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s tapefile\n\n", dptr->name); dptr 290 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s tapefile\n\n", dptr->name); dptr 306 src/simh/sim_tape.c if (sim_deb && (ctx->dptr->dctrl & reason)) dptr 307 src/simh/sim_tape.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), "", len, txt, reason); dptr 574 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %d, lnt: %d, pos: %" T_ADDR_FMT "u\n", r, *bc, uptr->pos); dptr 759 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %d, lnt: %d, pos: %" T_ADDR_FMT "u\n", r, *bc, uptr->pos); dptr 794 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecf(unit=%d, buf=%p, max=%d)\n", (int)(uptr-ctx->dptr->units), buf, max); dptr 815 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); dptr 857 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rdrecr(unit=%d, buf=%p, max=%d)\n", (int)(uptr-ctx->dptr->units), buf, max); dptr 871 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, rbc, "Record Read Reverse", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); dptr 907 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrrecf(unit=%d, buf=%p, bc=%d)\n", (int)(uptr-ctx->dptr->units), buf, bc); dptr 909 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, bc, "Record Write", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); dptr 946 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, sbc, "Record Written", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); dptr 976 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "wr_lnt: lnt: %d, pos: %" T_ADDR_FMT "u\n", dat, uptr->pos); dptr 989 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrtmk(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1013 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wreom(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1041 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wreomrw(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1172 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); dptr 1339 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecf(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1380 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecsf(unit=%d, count=%d)\n", (int)(uptr-ctx->dptr->units), count); dptr 1425 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecr(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1472 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_sprecsr(unit=%d, count=%d)\n", (int)(uptr-ctx->dptr->units), count); dptr 1521 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilebyrecf(unit=%d, count=%d, check_leot=%d)\n", (int)(uptr-ctx->dptr->units), count, check_leot); dptr 1589 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilef(unit=%d, count=%d)\n", (int)(uptr-ctx->dptr->units), count); dptr 1632 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfilebyrecr(unit=%d, count=%d)\n", (int)(uptr-ctx->dptr->units), count); dptr 1683 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_spfiler(unit=%d, count=%d)\n", (int)(uptr-ctx->dptr->units), count); dptr 1704 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_rewind(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1727 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_position(unit=%d, flags=0x%X, recs=%d, files=%d)\n", (int)(uptr-ctx->dptr->units), flags, recs, files); dptr 1791 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_reset(unit=%d)\n", (int)(uptr-ctx->dptr->units)); dptr 1875 src/simh/sim_tape.c DEVICE *dptr = find_dev_from_unit (uptr); dptr 1906 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: tape_size: %" T_ADDR_FMT "u\n", tape_size); dptr 1918 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: %d byte count at pos: %" T_ADDR_FMT "u\n", bc, tpos); dptr 1919 src/simh/sim_tape.c if (sim_deb && (dptr->dctrl & MTSE_DBG_STR)) { dptr 1921 src/simh/sim_tape.c sim_data_trace(dptr, uptr, ((dptr->dctrl & MTSE_DBG_DAT) ? recbuf : NULL), "", bc, "Data Record", MTSE_DBG_STR); dptr 1925 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: tape mark at pos: %" T_ADDR_FMT "u\n", tpos); dptr 1934 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: objc: %u, different record sizes: %u\n", objc, sizec); dptr 1938 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u tape marks\n", countmap[i]); dptr 1940 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u %d byte record%s\n", countmap[i], (int)i, (countmap[i] > 1) ? "s" : ""); dptr 1950 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: ERROR unexpected EOT byte count: %d\n", last_bc); dptr 1952 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: ERROR next record position %" T_ADDR_FMT "u beyond EOT: %" T_ADDR_FMT "u\n", tpos, tape_size); dptr 1954 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: ERROR tape cnly contains tape marks\n"); dptr 1961 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: WARNING unexpected EOT byte count: %d, double tape mark before %" T_ADDR_FMT "u provides logical EOT\n", last_bc, leot); dptr 1967 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: OK objc: %d\n", objc); dptr 159 src/simh/sim_tape.h t_stat sim_tape_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr); dptr 482 src/simh/sim_timer.c t_stat sim_show_timers (FILE* st, DEVICE *dptr, UNIT* uptr, int32 val, CONST char* desc) dptr 567 src/simh/sim_timer.c t_stat sim_show_clock_queues (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) dptr 581 src/simh/sim_timer.c if ((dptr = find_dev_from_unit (uptr)) != NULL) { //-V763 dptr 582 src/simh/sim_timer.c fprintf (st, " %s", sim_dname (dptr)); dptr 583 src/simh/sim_timer.c if (dptr->numunits > 1) dptr 584 src/simh/sim_timer.c fprintf (st, " unit %d", (int32) (uptr - dptr->units)); dptr 630 src/simh/sim_timer.c static t_stat sim_timer_clock_reset (DEVICE *dptr); dptr 813 src/simh/sim_timer.c static t_stat sim_timer_clock_reset (DEVICE *dptr) dptr 67 src/simh/sim_timer.h t_stat sim_show_timers (FILE* st, DEVICE *dptr, UNIT* uptr, int32 val, CONST char* desc); dptr 68 src/simh/sim_timer.h t_stat sim_show_clock_queues (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); dptr 358 src/simh/sim_tmxr.c if (mp->dptr) { /* device defined? */ dptr 360 src/simh/sim_tmxr.c sim_dname (mp->dptr)); dptr 578 src/simh/sim_tmxr.c DEVICE *dptr = find_dev_from_unit (uptr); /* find device */ dptr 579 src/simh/sim_tmxr.c if (dptr == NULL) /* what?? */ dptr 581 src/simh/sim_tmxr.c val = (int32) (uptr - dptr->units); /* implicit line # */ dptr 1251 src/simh/sim_tmxr.c DEVICE *dptr; dptr 1330 src/simh/sim_tmxr.c dptr = (lp->dptr ? lp->dptr : (lp->mp ? lp->mp->dptr : NULL)); dptr 1331 src/simh/sim_tmxr.c if ((lp->modembits != before_modem_bits) && (sim_deb && lp->mp && dptr)) { dptr 1332 src/simh/sim_tmxr.c sim_debug_bits (TMXR_DBG_MDM, dptr, tmxr_modem_bits, before_modem_bits, lp->modembits, FALSE); dptr 1333 src/simh/sim_tmxr.c sim_debug (TMXR_DBG_MDM, dptr, " - Line %d - %p\n", (int)(lp-lp->mp->ldsc), lp->txb); dptr 2949 src/simh/sim_tmxr.c DEVICE *dptr; dptr 2958 src/simh/sim_tmxr.c dptr = find_dev (gbuf); /* device match? */ dptr 2959 src/simh/sim_tmxr.c if (!dptr) dptr 2963 src/simh/sim_tmxr.c if (tmxr_open_devices[i]->dptr == dptr) { dptr 3013 src/simh/sim_tmxr.c if (mp->dptr == NULL) /* has device been set? */ dptr 3014 src/simh/sim_tmxr.c mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */ dptr 3016 src/simh/sim_tmxr.c if (mp->dptr) { dptr 3018 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; dptr 3020 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; dptr 3040 src/simh/sim_tmxr.c t_stat tmxr_show_open_devices (FILE* st, DEVICE *dptr, UNIT* uptr, int32 val, CONST char* desc) dptr 3052 src/simh/sim_tmxr.c fprintf(st, "Multiplexer device: %s", (mp->dptr ? sim_dname (mp->dptr) : "")); dptr 3088 src/simh/sim_tmxr.c if (lp->dptr && (mp->dptr != lp->dptr)) dptr 3089 src/simh/sim_tmxr.c fprintf (st, "Device: %s ", sim_dname(lp->dptr)); dptr 3228 src/simh/sim_tmxr.c t_stat tmxr_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr) dptr 3230 src/simh/sim_tmxr.c TMXR *mux = (TMXR *)dptr->help_ctx; dptr 3237 src/simh/sim_tmxr.c fprintf (st, "%s Multiplexer Attach Help\n\n", dptr->name); dptr 3239 src/simh/sim_tmxr.c fprintf (st, "The %s multiplexer may be connected to terminal emulators supporting the\n", dptr->name); dptr 3242 src/simh/sim_tmxr.c fprintf (st, "The %s device is a full modem control device and therefore is capable of\n", dptr->name); dptr 3246 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s {interface:}port\n\n", dptr->name); dptr 3247 src/simh/sim_tmxr.c fprintf (st, "Line buffering can be enabled for the %s device with:\n\n", dptr->name); dptr 3248 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Buffer{=bufsize}\n\n", dptr->name); dptr 3249 src/simh/sim_tmxr.c fprintf (st, "Line buffering can be disabled for the %s device with:\n\n", dptr->name); dptr 3250 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s NoBuffer\n\n", dptr->name); dptr 3252 src/simh/sim_tmxr.c fprintf (st, "The outbound traffic the %s device can be logged to a file with:\n", dptr->name); dptr 3253 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Log=LogFileName\n\n", dptr->name); dptr 3254 src/simh/sim_tmxr.c fprintf (st, "File logging can be disabled for the %s device with:\n\n", dptr->name); dptr 3255 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s NoLog\n\n", dptr->name); dptr 3256 src/simh/sim_tmxr.c fprintf (st, "The %s device may be connected to a serial port on the host system.\n", dptr->name); dptr 3259 src/simh/sim_tmxr.c fprintf (st, "%s multiplexer lines may be connected to terminal emulators supporting the\n", dptr->name); dptr 3264 src/simh/sim_tmxr.c fprintf (st, "The %s device is a full modem control device and therefore is capable of\n", dptr->name); dptr 3269 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,Modem\n", dptr->name); dptr 3270 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,NoModem\n\n", dptr->name); dptr 3272 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s {interface:}port\n\n", dptr->name); dptr 3274 src/simh/sim_tmxr.c fprintf (st, "Line buffering for all %d lines on the %s device can be configured with:\n\n", mux->lines, dptr->name); dptr 3276 src/simh/sim_tmxr.c fprintf (st, "Line buffering for all lines on the %s device can be configured with:\n\n", dptr->name); dptr 3277 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Buffer{=bufsize}\n\n", dptr->name); dptr 3279 src/simh/sim_tmxr.c fprintf (st, "Line buffering for all %d lines on the %s device can be disabled with:\n\n", mux->lines, dptr->name); dptr 3281 src/simh/sim_tmxr.c fprintf (st, "Line buffering for all lines on the %s device can be disabled with:\n\n", dptr->name); dptr 3282 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s NoBuffer\n\n", dptr->name); dptr 3284 src/simh/sim_tmxr.c fprintf (st, "The outbound traffic for the lines of the %s device can be logged to files\n", dptr->name); dptr 3286 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Log=LogFileName\n\n", dptr->name); dptr 3302 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Connect=ser0\n\n", dptr->name); dptr 3304 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Connect=COM1\n\n", dptr->name); dptr 3307 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,Connect=ser0\n\n", dptr->name); dptr 3309 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,Connect=COM1\n\n", dptr->name); dptr 3314 src/simh/sim_tmxr.c fprintf (st, "The input data rate for the %s device can be controlled by\n", dptr->name); dptr 3318 src/simh/sim_tmxr.c fprintf (st, "The input data rate for all lines or a particular line of a the %s\n", dptr->name); dptr 3335 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s 1234,SPEED=2400\n", dptr->name); dptr 3336 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s 1234,SPEED=9600*8\n", dptr->name); dptr 3338 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=2,SPEED=2400\n", dptr->name); dptr 3370 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH -V %s Connect=SerN\n", dptr->name); dptr 3372 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH -V %s Line=n,Connect=SerN\n\n", dptr->name); dptr 3375 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,{interface:}port{;notelnet}\n\n", dptr->name); dptr 3379 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,Connect=host:port{;notelnet}\n\n", dptr->name); dptr 3384 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s listenport,Connect=host:port\n\n", dptr->name); dptr 3388 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,listenport,Connect=host:port\n\n", dptr->name); dptr 3394 src/simh/sim_tmxr.c fprintf (st, "The %s device can be attached in LOOPBACK mode:\n\n", dptr->name); dptr 3395 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Loopback\n\n", dptr->name); dptr 3398 src/simh/sim_tmxr.c fprintf (st, "A line on the %s device can be attached in LOOPBACK mode:\n\n", dptr->name); dptr 3399 src/simh/sim_tmxr.c fprintf (st, " sim> ATTACH %s Line=n,Loopback\n\n", dptr->name); dptr 3405 src/simh/sim_tmxr.c fprintf (st, "The connection configured for the %s device is unconfigured by:\n\n", dptr->name); dptr 3407 src/simh/sim_tmxr.c fprintf (st, "All connections configured for the %s device are unconfigured by:\n\n", dptr->name); dptr 3408 src/simh/sim_tmxr.c fprintf (st, " sim> DETACH %s\n\n", dptr->name); dptr 3409 src/simh/sim_tmxr.c if (dptr->modifiers) { dptr 3412 src/simh/sim_tmxr.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) dptr 3414 src/simh/sim_tmxr.c fprintf (st, "A specific line on the %s device can be disconnected with:\n\n", dptr->name); dptr 3415 src/simh/sim_tmxr.c fprintf (st, " sim> SET %s %s=n\n\n", dptr->name, mptr->mstring); dptr 3421 src/simh/sim_tmxr.c fprintf (st, " sim> SET -C %s %s=n\n\n", dptr->name, mptr->mstring); dptr 189 src/simh/sim_tmxr.h DEVICE *dptr; /* line specific device */ dptr 200 src/simh/sim_tmxr.h DEVICE *dptr; /* multiplexer device */ dptr 234 src/simh/sim_tmxr.h t_stat tmxr_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); dptr 265 src/simh/sim_tmxr.h t_stat tmxr_show_open_devices (FILE* st, DEVICE *dptr, UNIT* uptr, int32 val, CONST char* desc); dptr 276 src/simh/sim_tmxr.h # define tmxr_debug(dbits, lp, msg, buf, bufsize) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) _tmxr_debug (dbits, lp, msg, buf, bufsize); } while (0) dptr 277 src/simh/sim_tmxr.h # define tmxr_debug_msg(dbits, lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) sim_debug (dbits, (lp)->mp->dptr, "%s", msg); } while (0) dptr 278 src/simh/sim_tmxr.h # define tmxr_debug_return(lp, val) do {if (sim_deb && (val) && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_RET & (lp)->mp->dptr->dctrl)) { if ((lp)->rxbps) sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x - Next after: %.0f\n", (int)((lp)-(lp)->mp->ldsc), val, (lp)->rxnexttime); else sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x\n", (int)((lp)-(lp)->mp->ldsc), val); } } while (0) dptr 279 src/simh/sim_tmxr.h # define tmxr_debug_trace(mp, msg) do {if (sim_deb && (mp)->dptr && (TMXR_DBG_TRC & (mp)->dptr->dctrl)) sim_debug (TMXR_DBG_TRC, mp->dptr, "%s\n", (msg)); } while (0) dptr 280 src/simh/sim_tmxr.h # define tmxr_debug_trace_line(lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_TRC & (lp)->mp->dptr->dctrl)) sim_debug (TMXR_DBG_TRC, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0) dptr 281 src/simh/sim_tmxr.h # define tmxr_debug_connect(mp, msg) do {if (sim_deb && (mp)->dptr && (TMXR_DBG_CON & (mp)->dptr->dctrl)) sim_debug (TMXR_DBG_CON, mp->dptr, "%s\n", (msg)); } while (0) dptr 282 src/simh/sim_tmxr.h # define tmxr_debug_connect_line(lp, msg) do {if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_CON & (lp)->mp->dptr->dctrl)) sim_debug (TMXR_DBG_CON, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0)