mp 1194 src/dps8/dps8_utils.c char * sp, * mp, * reset_string, * reset_mask, * sn; mp 1198 src/dps8/dps8_utils.c mp = mask; mp 1202 src/dps8/dps8_utils.c switch (* mp) mp 1209 src/dps8/dps8_utils.c mp ++; mp 1213 src/dps8/dps8_utils.c if (* mp == * sp) mp 1216 src/dps8/dps8_utils.c mp ++; mp 1225 src/dps8/dps8_utils.c if (* (mp + 1) == '\0') mp 1229 src/dps8/dps8_utils.c if ((sn = strchr (sp, * (mp + 1))) == NULL) mp 1236 src/dps8/dps8_utils.c reset_mask = mp; mp 1239 src/dps8/dps8_utils.c mp = mp + 2; mp 1244 src/dps8/dps8_utils.c switch (* mp) mp 1254 src/dps8/dps8_utils.c mp ++; mp 1257 src/dps8/dps8_utils.c if (* mp == * sp) mp 1260 src/dps8/dps8_utils.c mp ++; mp 1274 src/dps8/dps8_utils.c mp = reset_mask; mp 1902 src/simh/sim_console.c sim_con_tmxr.ldsc->mp = &sim_con_tmxr; mp 259 src/simh/sim_tmxr.c if ((!lp->mp->buffered) && (!lp->txbfd)) { mp 347 src/simh/sim_tmxr.c static void tmxr_report_connection (TMXR *mp, TMLN *lp) mp 358 src/simh/sim_tmxr.c if (mp->dptr) { /* device defined? */ mp 360 src/simh/sim_tmxr.c sim_dname (mp->dptr)); mp 362 src/simh/sim_tmxr.c if (mp->lines > 1) /* more than one line? */ mp 363 src/simh/sim_tmxr.c sprintf (lmsg, ", line %d", (int)(lp-mp->ldsc));/* report the line number */ mp 369 src/simh/sim_tmxr.c if (!mp->buffered) { mp 573 src/simh/sim_tmxr.c static TMLN *tmxr_find_ldsc (UNIT *uptr, int32 val, const TMXR *mp) mp 575 src/simh/sim_tmxr.c if (mp == NULL) /* invalid multiplexer descriptor? */ mp 583 src/simh/sim_tmxr.c if ((val < 0) || (val >= mp->lines)) /* invalid line? */ mp 585 src/simh/sim_tmxr.c return mp->ldsc + val; /* line descriptor */ mp 604 src/simh/sim_tmxr.c static TMLN *tmxr_get_ldsc (UNIT *uptr, const char *cptr, TMXR *mp, t_stat *status) mp 610 src/simh/sim_tmxr.c if (mp == NULL) /* missing mux descriptor? */ mp 614 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, mp->lines, mp); /* determine line from unit */ mp 624 src/simh/sim_tmxr.c ln = get_uint (cptr, 10, mp->lines - 1, &code); /* get line number */ mp 627 src/simh/sim_tmxr.c lp = mp->ldsc + (int32) ln; /* use as index to determine line */ mp 676 src/simh/sim_tmxr.c static char *tmxr_mux_attach_string(char *old, TMXR *mp) mp 687 src/simh/sim_tmxr.c if (mp->port) /* copy port */ mp 688 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 33 + strlen (mp->port)), "%s%s", mp->port, mp->notelnet ? ";notelnet" : ""); mp 689 src/simh/sim_tmxr.c if (mp->logfiletmpl[0]) /* logfile info */ mp 690 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 7 + strlen (mp->logfiletmpl)), ",Log=%s", mp->logfiletmpl); mp 693 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { mp 695 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 703 src/simh/sim_tmxr.c if (mp->lines == 1) mp 737 src/simh/sim_tmxr.c if ((lp->mp->lines > 1) || (lp->port)) mp 738 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 32), "Line=%d", (int)(lp-lp->mp->ldsc)); mp 739 src/simh/sim_tmxr.c if (lp->modem_control != lp->mp->modem_control) mp 741 src/simh/sim_tmxr.c if (lp->txbfd && (lp->txbsz != lp->mp->buffered)) mp 743 src/simh/sim_tmxr.c if (!lp->txbfd && (lp->mp->buffered > 0)) mp 745 src/simh/sim_tmxr.c if (lp->mp->datagram != lp->datagram) mp 747 src/simh/sim_tmxr.c if (lp->mp->packet != lp->packet) mp 750 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 32 + strlen (lp->port)), ",%s%s", lp->port, ((lp->mp->notelnet != lp->notelnet) && (!lp->datagram)) ? (lp->notelnet ? ";notelnet" : ";telnet") : ""); mp 752 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 25 + strlen (lp->destination)), ",Connect=%s%s", lp->destination, ((lp->mp->notelnet != lp->notelnet) && (!lp->datagram)) ? (lp->notelnet ? ";notelnet" : ";telnet") : ""); mp 799 src/simh/sim_tmxr.c int32 tmxr_poll_conn (TMXR *mp) mp 816 src/simh/sim_tmxr.c if (mp->last_poll_time == 0) { /* first poll initializations */ mp 817 src/simh/sim_tmxr.c UNIT *uptr = mp->uptr; mp 822 src/simh/sim_tmxr.c if (mp->poll_interval == 0) /* Assure reasonable polling interval */ mp 823 src/simh/sim_tmxr.c mp->poll_interval = TMXR_DEFAULT_CONNECT_POLL_INTERVAL; mp 829 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 830 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 832 src/simh/sim_tmxr.c if (!(mp->uptr->dynflags & TMUF_NOASYNCH)) { /* if asynch not disabled */ mp 839 src/simh/sim_tmxr.c if ((poll_time - mp->last_poll_time) < mp->poll_interval*1000) mp 917 src/simh/sim_tmxr.c mp->last_poll_time = poll_time; mp 921 src/simh/sim_tmxr.c if (mp->master) { mp 922 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { /* Use currently 'ringing' socket if one is active */ mp 923 src/simh/sim_tmxr.c newsock = mp->ring_sock; mp 924 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 925 src/simh/sim_tmxr.c address = mp->ring_ipad; mp 926 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 929 src/simh/sim_tmxr.c newsock = sim_accept_conn_ex (mp->master, &address, (mp->packet ? SIM_SOCK_OPT_NODELAY : 0));/* poll connect */ mp 933 src/simh/sim_tmxr.c op = mp->lnorder; /* get line connection order list pointer */ mp 934 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ mp 935 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 937 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 938 src/simh/sim_tmxr.c if (op && (*op >= 0) && (*op < mp->lines)) /* order list present and valid? */ mp 943 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 952 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ mp 955 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 956 src/simh/sim_tmxr.c lp = mp->ldsc + j; /* get pointer to line descriptor */ mp 967 src/simh/sim_tmxr.c if (mp->ring_start_time == 0) { mp 968 src/simh/sim_tmxr.c mp->ring_start_time = poll_time; mp 969 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 970 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 973 src/simh/sim_tmxr.c if ((poll_time - mp->ring_start_time) < TMXR_MODEM_RING_TIME*1000) { mp 974 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 975 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 981 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 982 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 987 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 1001 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1006 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; /* apply mux default telnet setting */ mp 1024 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 1032 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ mp 1034 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 1109 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 1150 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 1176 src/simh/sim_tmxr.c (lp->mp->packet ? SIM_SOCK_OPT_NODELAY : 0) | mp 1283 src/simh/sim_tmxr.c (lp->mp && (lp->mp->ring_sock))) { mp 1287 src/simh/sim_tmxr.c lp->sock = lp->mp->ring_sock; /* save socket */ mp 1288 src/simh/sim_tmxr.c lp->mp->ring_sock = INVALID_SOCKET; mp 1289 src/simh/sim_tmxr.c lp->ipad = lp->mp->ring_ipad; /* ip address */ mp 1290 src/simh/sim_tmxr.c lp->mp->ring_ipad = NULL; mp 1291 src/simh/sim_tmxr.c lp->mp->ring_start_time = 0; mp 1293 src/simh/sim_tmxr.c lp->notelnet = lp->mp->notelnet; /* apply mux default telnet setting */ mp 1311 src/simh/sim_tmxr.c tmxr_report_connection (lp->mp, lp); mp 1315 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 1316 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 1323 src/simh/sim_tmxr.c if ((lp->master) || (lp->mp && lp->mp->master) || mp 1330 src/simh/sim_tmxr.c dptr = (lp->dptr ? lp->dptr : (lp->mp ? lp->mp->dptr : NULL)); mp 1331 src/simh/sim_tmxr.c if ((lp->modembits != before_modem_bits) && (sim_deb && lp->mp && dptr)) { mp 1333 src/simh/sim_tmxr.c sim_debug (TMXR_DBG_MDM, dptr, " - Line %d - %p\n", (int)(lp-lp->mp->ldsc), lp->txb); mp 1337 src/simh/sim_tmxr.c if (lp->mp && lp->modem_control) { /* This API ONLY works on modem_control enabled multiplexer lines */ mp 1585 src/simh/sim_tmxr.c void tmxr_poll_rx (TMXR *mp) mp 1590 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1591 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1811 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1812 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1956 src/simh/sim_tmxr.c void tmxr_poll_tx (TMXR *mp) mp 1961 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1962 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 2078 src/simh/sim_tmxr.c if (lp->mp) { mp 2082 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 2086 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, lp->mp); mp 2089 src/simh/sim_tmxr.c tmxr_detach (lp->mp, uptr); mp 2162 src/simh/sim_tmxr.c if ((!uptr) && (lp->mp)) mp 2163 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 2181 src/simh/sim_tmxr.c t_stat tmxr_open_master (TMXR *mp, CONST char *cptr) mp 2195 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2196 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2197 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2198 src/simh/sim_tmxr.c lp->modem_control = mp->modem_control; mp 2202 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2203 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 2204 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2205 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2216 src/simh/sim_tmxr.c datagram = mp->datagram; mp 2217 src/simh/sim_tmxr.c packet = mp->packet; mp 2218 src/simh/sim_tmxr.c if (mp->buffered) mp 2219 src/simh/sim_tmxr.c sprintf(buffered, "%d", mp->buffered); mp 2221 src/simh/sim_tmxr.c notelnet = listennotelnet = mp->notelnet; mp 2222 src/simh/sim_tmxr.c modem_control = mp->modem_control; mp 2236 src/simh/sim_tmxr.c nextline = (int32) get_uint (cptr, 10, mp->lines-1, &r); mp 2388 src/simh/sim_tmxr.c if (modem_control != mp->modem_control) mp 2401 src/simh/sim_tmxr.c strncpy(mp->logfiletmpl, logfiletmpl, sizeof(mp->logfiletmpl)-1); mp 2411 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { mp 2412 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2428 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2429 src/simh/sim_tmxr.c sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); mp 2431 src/simh/sim_tmxr.c (void)strcpy (lp->txlogname, mp->logfiletmpl); mp 2442 src/simh/sim_tmxr.c mp->buffered = atoi(buffered); mp 2443 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ mp 2444 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2445 src/simh/sim_tmxr.c if (mp->buffered) { mp 2446 src/simh/sim_tmxr.c lp->txbsz = mp->buffered; mp 2448 src/simh/sim_tmxr.c lp->rxbsz = mp->buffered; mp 2497 src/simh/sim_tmxr.c mp->logfiletmpl[0] = '\0'; mp 2498 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ mp 2499 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2514 src/simh/sim_tmxr.c if (mp->port) { /* close prior listener */ mp 2515 src/simh/sim_tmxr.c sim_close_sock (mp->master); mp 2516 src/simh/sim_tmxr.c mp->master = 0; mp 2517 src/simh/sim_tmxr.c FREE (mp->port); mp 2518 src/simh/sim_tmxr.c mp->port = NULL; mp 2521 src/simh/sim_tmxr.c mp->port = (char *)realloc (mp->port, 1 + strlen (listen)); mp 2522 src/simh/sim_tmxr.c if (!mp->port) mp 2534 src/simh/sim_tmxr.c (void)strcpy (mp->port, listen); /* save port */ mp 2535 src/simh/sim_tmxr.c mp->master = sock; /* save master socket */ mp 2536 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2537 src/simh/sim_tmxr.c if (mp->ring_ipad) FREE (mp->ring_ipad); mp 2538 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2539 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2540 src/simh/sim_tmxr.c mp->notelnet = listennotelnet; /* save desired telnet behavior flag */ mp 2541 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2542 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2543 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2544 src/simh/sim_tmxr.c lp->packet = mp->packet; mp 2552 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2555 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 mp 2556 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2563 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2565 src/simh/sim_tmxr.c lp = &mp->ldsc[0]; mp 2607 src/simh/sim_tmxr.c lp->mp = mp; mp 2638 src/simh/sim_tmxr.c lp = &mp->ldsc[line]; mp 2639 src/simh/sim_tmxr.c lp->mp = mp; mp 2724 src/simh/sim_tmxr.c if ((mp->lines == 1) && (mp->master)) mp 2748 src/simh/sim_tmxr.c if (listennotelnet != mp->notelnet) mp 2751 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; mp 2831 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 2854 src/simh/sim_tmxr.c t_stat tmxr_set_line_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2856 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2858 src/simh/sim_tmxr.c mp->ldsc[line].uptr = uptr_poll; mp 2881 src/simh/sim_tmxr.c t_stat tmxr_set_line_output_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2883 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2885 src/simh/sim_tmxr.c mp->ldsc[line].o_uptr = uptr_poll; mp 2993 src/simh/sim_tmxr.c t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async) mp 2998 src/simh/sim_tmxr.c r = tmxr_open_master (mp, cptr); /* open master socket */ mp 3001 src/simh/sim_tmxr.c mp->uptr = uptr; /* save unit for polling */ mp 3002 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, mp);/* save */ mp 3004 src/simh/sim_tmxr.c uptr->tmxr = (void *)mp; mp 3005 src/simh/sim_tmxr.c if ((mp->lines > 1) || mp 3006 src/simh/sim_tmxr.c ((mp->master == 0) && mp 3007 src/simh/sim_tmxr.c (mp->ldsc[0].connecting == 0) mp 3013 src/simh/sim_tmxr.c if (mp->dptr == NULL) /* has device been set? */ mp 3014 src/simh/sim_tmxr.c mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */ mp 3016 src/simh/sim_tmxr.c if (mp->dptr) { mp 3017 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { mp 3018 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; mp 3019 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; mp 3020 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; mp 3021 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; mp 3024 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 3048 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; mp 3052 src/simh/sim_tmxr.c fprintf(st, "Multiplexer device: %s", (mp->dptr ? sim_dname (mp->dptr) : "")); mp 3053 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 3055 src/simh/sim_tmxr.c tmxr_show_lines(st, NULL, 0, mp); mp 3057 src/simh/sim_tmxr.c if (mp->packet) mp 3059 src/simh/sim_tmxr.c if (mp->datagram) mp 3061 src/simh/sim_tmxr.c if (mp->notelnet) mp 3063 src/simh/sim_tmxr.c if (mp->modem_control) mp 3065 src/simh/sim_tmxr.c if (mp->buffered) mp 3066 src/simh/sim_tmxr.c fprintf(st, ", Buffered=%d", mp->buffered); mp 3067 src/simh/sim_tmxr.c attach = tmxr_mux_attach_string (NULL, mp); mp 3071 src/simh/sim_tmxr.c tmxr_show_summ(st, NULL, 0, mp); mp 3072 src/simh/sim_tmxr.c fprintf(st, ", sessions=%d", mp->sessions); mp 3073 src/simh/sim_tmxr.c if (mp->lines == 1) { mp 3074 src/simh/sim_tmxr.c if (mp->ldsc->rxbps) { mp 3075 src/simh/sim_tmxr.c fprintf(st, ", Speed=%lu", (unsigned long)mp->ldsc->rxbps); mp 3076 src/simh/sim_tmxr.c if (mp->ldsc->rxbpsfactor != TMXR_RX_BPS_UNIT_SCALE) mp 3077 src/simh/sim_tmxr.c fprintf(st, "*%.0f", mp->ldsc->rxbpsfactor/TMXR_RX_BPS_UNIT_SCALE); mp 3082 src/simh/sim_tmxr.c if (mp->ring_start_time) { mp 3083 src/simh/sim_tmxr.c fprintf (st, " incoming Connection from: %s ringing for %lu milliseconds\n", mp->ring_ipad, (unsigned long)sim_os_msec () - (unsigned long)mp->ring_start_time); mp 3085 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++) { mp 3086 src/simh/sim_tmxr.c lp = mp->ldsc + j; mp 3087 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 3088 src/simh/sim_tmxr.c if (lp->dptr && (mp->dptr != lp->dptr)) mp 3091 src/simh/sim_tmxr.c if (mp->notelnet != lp->notelnet) mp 3093 src/simh/sim_tmxr.c if (lp->uptr && (lp->uptr != lp->mp->uptr)) mp 3095 src/simh/sim_tmxr.c if (mp->modem_control != lp->modem_control) mp 3128 src/simh/sim_tmxr.c t_stat tmxr_close_master (TMXR *mp) mp 3133 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ mp 3134 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 3170 src/simh/sim_tmxr.c if (mp->master) mp 3171 src/simh/sim_tmxr.c sim_close_sock (mp->master); /* close master socket */ mp 3172 src/simh/sim_tmxr.c mp->master = 0; mp 3173 src/simh/sim_tmxr.c FREE (mp->port); mp 3174 src/simh/sim_tmxr.c mp->port = NULL; mp 3175 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { mp 3176 src/simh/sim_tmxr.c sim_close_sock (mp->ring_sock); mp 3177 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 3178 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 3179 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 3180 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 3182 src/simh/sim_tmxr.c _tmxr_remove_from_open_list (mp); mp 3191 src/simh/sim_tmxr.c t_stat tmxr_detach (TMXR *mp, UNIT *uptr) mp 3197 src/simh/sim_tmxr.c tmxr_close_master (mp); /* close master socket */ mp 3201 src/simh/sim_tmxr.c mp->last_poll_time = 0; mp 3202 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 3203 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 3204 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; mp 3658 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3665 src/simh/sim_tmxr.c lp = tmxr_get_ldsc (uptr, cptr, mp, &status); /* get referenced line */ mp 3684 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3690 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3708 src/simh/sim_tmxr.c if (mp->uptr) /* attached?, then update attach string */ mp 3709 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3717 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3722 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3731 src/simh/sim_tmxr.c if (mp->uptr) mp 3732 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3740 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3743 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3782 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3786 src/simh/sim_tmxr.c t_addr low, high, max = (t_addr) mp->lines - 1; mp 3792 src/simh/sim_tmxr.c if (mp->lnorder == NULL) /* line connection order undefined? */ mp 3798 src/simh/sim_tmxr.c list = (int32 *) calloc (mp->lines, sizeof (int32)); /* allocate new line order array */ mp 3802 src/simh/sim_tmxr.c set = (t_bool *) calloc (mp->lines, sizeof (t_bool)); /* allocate line set tracking array */ mp 3856 src/simh/sim_tmxr.c memcpy (mp->lnorder, list, mp->lines * sizeof (int32)); /* copy working array to connection array */ mp 3884 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3885 src/simh/sim_tmxr.c int32 *iptr = mp->lnorder; mp 3892 src/simh/sim_tmxr.c fprintf (st, "Order=0-%d\n", mp->lines - 1); /* print full line range */ mp 3897 src/simh/sim_tmxr.c for (j = 1; j <= mp->lines; j++) { /* print remaining lines in order list */ mp 3898 src/simh/sim_tmxr.c if (j < mp->lines) /* more lines to process? */ mp 3935 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3938 src/simh/sim_tmxr.c if (mp == NULL) mp 3940 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) mp 3941 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3944 src/simh/sim_tmxr.c if (mp->lines > 1) mp 3955 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3958 src/simh/sim_tmxr.c if (mp == NULL) mp 3960 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { mp 3961 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3962 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { mp 3963 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3967 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); mp 3969 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3971 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i); mp 3975 src/simh/sim_tmxr.c fprintf (st, (mp->lines == 1? "disconnected\n": "all disconnected\n")); mp 3983 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3985 src/simh/sim_tmxr.c if (mp == NULL) mp 3987 src/simh/sim_tmxr.c fprintf (st, "lines=%d", mp->lines); mp 172 src/simh/sim_tmxr.h TMXR *mp; /* back pointer to mux */ mp 217 src/simh/sim_tmxr.h int32 tmxr_poll_conn (TMXR *mp); mp 224 src/simh/sim_tmxr.h void tmxr_poll_rx (TMXR *mp); mp 228 src/simh/sim_tmxr.h void tmxr_poll_tx (TMXR *mp); mp 230 src/simh/sim_tmxr.h t_stat tmxr_open_master (TMXR *mp, CONST char *cptr); mp 231 src/simh/sim_tmxr.h t_stat tmxr_close_master (TMXR *mp); mp 232 src/simh/sim_tmxr.h t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async); mp 233 src/simh/sim_tmxr.h t_stat tmxr_detach (TMXR *mp, UNIT *uptr); mp 242 src/simh/sim_tmxr.h t_stat tmxr_set_line_unit (TMXR *mp, int line, UNIT *uptr_poll); mp 243 src/simh/sim_tmxr.h t_stat tmxr_set_line_output_unit (TMXR *mp, int line, UNIT *uptr_poll); mp 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) mp 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) mp 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) mp 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) mp 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) mp 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) mp 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) mp 284 src/simh/sim_tmxr.h # define tmxr_attach(mp, uptr, cptr) tmxr_attach_ex(mp, uptr, cptr, FALSE)