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 1881 src/simh/sim_console.c sim_con_tmxr.ldsc->mp = &sim_con_tmxr; mp 242 src/simh/sim_tmxr.c if ((!lp->mp->buffered) && (!lp->txbfd)) { mp 330 src/simh/sim_tmxr.c static void tmxr_report_connection (TMXR *mp, TMLN *lp) mp 341 src/simh/sim_tmxr.c if (mp->dptr) { /* device defined? */ mp 343 src/simh/sim_tmxr.c sim_dname (mp->dptr)); mp 345 src/simh/sim_tmxr.c if (mp->lines > 1) /* more than one line? */ mp 346 src/simh/sim_tmxr.c sprintf (lmsg, ", line %d", (int)(lp-mp->ldsc));/* report the line number */ mp 352 src/simh/sim_tmxr.c if (!mp->buffered) { mp 556 src/simh/sim_tmxr.c static TMLN *tmxr_find_ldsc (UNIT *uptr, int32 val, const TMXR *mp) mp 558 src/simh/sim_tmxr.c if (mp == NULL) /* invalid multiplexer descriptor? */ mp 566 src/simh/sim_tmxr.c if ((val < 0) || (val >= mp->lines)) /* invalid line? */ mp 568 src/simh/sim_tmxr.c return mp->ldsc + val; /* line descriptor */ mp 587 src/simh/sim_tmxr.c static TMLN *tmxr_get_ldsc (UNIT *uptr, const char *cptr, TMXR *mp, t_stat *status) mp 593 src/simh/sim_tmxr.c if (mp == NULL) /* missing mux descriptor? */ mp 597 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, mp->lines, mp); /* determine line from unit */ mp 607 src/simh/sim_tmxr.c ln = get_uint (cptr, 10, mp->lines - 1, &code); /* get line number */ mp 610 src/simh/sim_tmxr.c lp = mp->ldsc + (int32) ln; /* use as index to determine line */ mp 659 src/simh/sim_tmxr.c static char *tmxr_mux_attach_string(char *old, TMXR *mp) mp 670 src/simh/sim_tmxr.c if (mp->port) /* copy port */ mp 671 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 33 + strlen (mp->port)), "%s%s", mp->port, mp->notelnet ? ";notelnet" : ""); mp 672 src/simh/sim_tmxr.c if (mp->logfiletmpl[0]) /* logfile info */ mp 673 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 7 + strlen (mp->logfiletmpl)), ",Log=%s", mp->logfiletmpl); mp 676 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { mp 678 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 686 src/simh/sim_tmxr.c if (mp->lines == 1) mp 720 src/simh/sim_tmxr.c if ((lp->mp->lines > 1) || (lp->port)) mp 721 src/simh/sim_tmxr.c sprintf (growstring(&tptr, 32), "Line=%d", (int)(lp-lp->mp->ldsc)); mp 722 src/simh/sim_tmxr.c if (lp->modem_control != lp->mp->modem_control) mp 724 src/simh/sim_tmxr.c if (lp->txbfd && (lp->txbsz != lp->mp->buffered)) mp 726 src/simh/sim_tmxr.c if (!lp->txbfd && (lp->mp->buffered > 0)) mp 728 src/simh/sim_tmxr.c if (lp->mp->datagram != lp->datagram) mp 730 src/simh/sim_tmxr.c if (lp->mp->packet != lp->packet) mp 733 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 735 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 763 src/simh/sim_tmxr.c int32 tmxr_poll_conn (TMXR *mp) mp 777 src/simh/sim_tmxr.c if (mp->last_poll_time == 0) { /* first poll initializations */ mp 778 src/simh/sim_tmxr.c UNIT *uptr = mp->uptr; mp 783 src/simh/sim_tmxr.c if (mp->poll_interval == 0) /* Assure reasonable polling interval */ mp 784 src/simh/sim_tmxr.c mp->poll_interval = TMXR_DEFAULT_CONNECT_POLL_INTERVAL; mp 790 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 791 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 793 src/simh/sim_tmxr.c if (!(mp->uptr->dynflags & TMUF_NOASYNCH)) { /* if asynch not disabled */ mp 800 src/simh/sim_tmxr.c if ((poll_time - mp->last_poll_time) < mp->poll_interval*1000) mp 823 src/simh/sim_tmxr.c mp->last_poll_time = poll_time; mp 827 src/simh/sim_tmxr.c if (mp->master) { mp 828 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { /* Use currently 'ringing' socket if one is active */ mp 829 src/simh/sim_tmxr.c newsock = mp->ring_sock; mp 830 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 831 src/simh/sim_tmxr.c address = mp->ring_ipad; mp 832 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 835 src/simh/sim_tmxr.c newsock = sim_accept_conn_ex (mp->master, &address, (mp->packet ? SIM_SOCK_OPT_NODELAY : 0));/* poll connect */ mp 839 src/simh/sim_tmxr.c op = mp->lnorder; /* get line connection order list pointer */ mp 840 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ mp 841 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 843 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 844 src/simh/sim_tmxr.c if (op && (*op >= 0) && (*op < mp->lines)) /* order list present and valid? */ mp 849 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 858 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ mp 861 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 862 src/simh/sim_tmxr.c lp = mp->ldsc + j; /* get pointer to line descriptor */ mp 873 src/simh/sim_tmxr.c if (mp->ring_start_time == 0) { mp 874 src/simh/sim_tmxr.c mp->ring_start_time = poll_time; mp 875 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 876 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 879 src/simh/sim_tmxr.c if ((poll_time - mp->ring_start_time) < TMXR_MODEM_RING_TIME*1000) { mp 880 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 881 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 887 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 888 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 893 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 907 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 912 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; /* apply mux default telnet setting */ mp 930 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 938 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ mp 940 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 1015 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 1056 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 1082 src/simh/sim_tmxr.c (lp->mp->packet ? SIM_SOCK_OPT_NODELAY : 0) | mp 1189 src/simh/sim_tmxr.c (lp->mp && (lp->mp->ring_sock))) { mp 1193 src/simh/sim_tmxr.c lp->sock = lp->mp->ring_sock; /* save socket */ mp 1194 src/simh/sim_tmxr.c lp->mp->ring_sock = INVALID_SOCKET; mp 1195 src/simh/sim_tmxr.c lp->ipad = lp->mp->ring_ipad; /* ip address */ mp 1196 src/simh/sim_tmxr.c lp->mp->ring_ipad = NULL; mp 1197 src/simh/sim_tmxr.c lp->mp->ring_start_time = 0; mp 1199 src/simh/sim_tmxr.c lp->notelnet = lp->mp->notelnet; /* apply mux default telnet setting */ mp 1217 src/simh/sim_tmxr.c tmxr_report_connection (lp->mp, lp); mp 1221 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 1222 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 1229 src/simh/sim_tmxr.c if ((lp->master) || (lp->mp && lp->mp->master) || mp 1236 src/simh/sim_tmxr.c dptr = (lp->dptr ? lp->dptr : (lp->mp ? lp->mp->dptr : NULL)); mp 1237 src/simh/sim_tmxr.c if ((lp->modembits != before_modem_bits) && (sim_deb && lp->mp && dptr)) { mp 1239 src/simh/sim_tmxr.c sim_debug (TMXR_DBG_MDM, dptr, " - Line %d - %p\n", (int)(lp-lp->mp->ldsc), lp->txb); mp 1243 src/simh/sim_tmxr.c if (lp->mp && lp->modem_control) { /* This API ONLY works on modem_control enabled multiplexer lines */ mp 1491 src/simh/sim_tmxr.c void tmxr_poll_rx (TMXR *mp) mp 1496 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1497 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1717 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1718 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1862 src/simh/sim_tmxr.c void tmxr_poll_tx (TMXR *mp) mp 1867 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1868 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1984 src/simh/sim_tmxr.c if (lp->mp) { mp 1988 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 1992 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, lp->mp); mp 1995 src/simh/sim_tmxr.c tmxr_detach (lp->mp, uptr); mp 2068 src/simh/sim_tmxr.c if ((!uptr) && (lp->mp)) mp 2069 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 2087 src/simh/sim_tmxr.c t_stat tmxr_open_master (TMXR *mp, CONST char *cptr) mp 2101 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2102 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2103 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2104 src/simh/sim_tmxr.c lp->modem_control = mp->modem_control; mp 2108 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2109 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 2110 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2111 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2122 src/simh/sim_tmxr.c datagram = mp->datagram; mp 2123 src/simh/sim_tmxr.c packet = mp->packet; mp 2124 src/simh/sim_tmxr.c if (mp->buffered) mp 2125 src/simh/sim_tmxr.c sprintf(buffered, "%d", mp->buffered); mp 2127 src/simh/sim_tmxr.c notelnet = listennotelnet = mp->notelnet; mp 2128 src/simh/sim_tmxr.c modem_control = mp->modem_control; mp 2142 src/simh/sim_tmxr.c nextline = (int32) get_uint (cptr, 10, mp->lines-1, &r); mp 2294 src/simh/sim_tmxr.c if (modem_control != mp->modem_control) mp 2307 src/simh/sim_tmxr.c strncpy(mp->logfiletmpl, logfiletmpl, sizeof(mp->logfiletmpl)-1); mp 2317 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { mp 2318 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2334 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2335 src/simh/sim_tmxr.c sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); mp 2337 src/simh/sim_tmxr.c strcpy (lp->txlogname, mp->logfiletmpl); mp 2348 src/simh/sim_tmxr.c mp->buffered = atoi(buffered); mp 2349 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ mp 2350 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2351 src/simh/sim_tmxr.c if (mp->buffered) { mp 2352 src/simh/sim_tmxr.c lp->txbsz = mp->buffered; mp 2354 src/simh/sim_tmxr.c lp->rxbsz = mp->buffered; mp 2403 src/simh/sim_tmxr.c mp->logfiletmpl[0] = '\0'; mp 2404 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ mp 2405 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2420 src/simh/sim_tmxr.c if (mp->port) { /* close prior listener */ mp 2421 src/simh/sim_tmxr.c sim_close_sock (mp->master); mp 2422 src/simh/sim_tmxr.c mp->master = 0; mp 2423 src/simh/sim_tmxr.c FREE (mp->port); mp 2424 src/simh/sim_tmxr.c mp->port = NULL; mp 2427 src/simh/sim_tmxr.c mp->port = (char *)realloc (mp->port, 1 + strlen (listen)); mp 2428 src/simh/sim_tmxr.c if (!mp->port) mp 2440 src/simh/sim_tmxr.c strcpy (mp->port, listen); /* save port */ mp 2441 src/simh/sim_tmxr.c mp->master = sock; /* save master socket */ mp 2442 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2443 src/simh/sim_tmxr.c if (mp->ring_ipad) FREE (mp->ring_ipad); mp 2444 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2445 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2446 src/simh/sim_tmxr.c mp->notelnet = listennotelnet; /* save desired telnet behavior flag */ mp 2447 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2448 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2449 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2450 src/simh/sim_tmxr.c lp->packet = mp->packet; mp 2458 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2461 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 mp 2462 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2469 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2471 src/simh/sim_tmxr.c lp = &mp->ldsc[0]; mp 2513 src/simh/sim_tmxr.c lp->mp = mp; mp 2544 src/simh/sim_tmxr.c lp = &mp->ldsc[line]; mp 2545 src/simh/sim_tmxr.c lp->mp = mp; mp 2630 src/simh/sim_tmxr.c if ((mp->lines == 1) && (mp->master)) mp 2654 src/simh/sim_tmxr.c if (listennotelnet != mp->notelnet) mp 2657 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; mp 2737 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 2760 src/simh/sim_tmxr.c t_stat tmxr_set_line_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2762 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2764 src/simh/sim_tmxr.c mp->ldsc[line].uptr = uptr_poll; mp 2787 src/simh/sim_tmxr.c t_stat tmxr_set_line_output_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2789 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2791 src/simh/sim_tmxr.c mp->ldsc[line].o_uptr = uptr_poll; mp 2899 src/simh/sim_tmxr.c t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async) mp 2904 src/simh/sim_tmxr.c r = tmxr_open_master (mp, cptr); /* open master socket */ mp 2907 src/simh/sim_tmxr.c mp->uptr = uptr; /* save unit for polling */ mp 2908 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, mp);/* save */ mp 2910 src/simh/sim_tmxr.c uptr->tmxr = (void *)mp; mp 2911 src/simh/sim_tmxr.c if ((mp->lines > 1) || mp 2912 src/simh/sim_tmxr.c ((mp->master == 0) && mp 2913 src/simh/sim_tmxr.c (mp->ldsc[0].connecting == 0) mp 2919 src/simh/sim_tmxr.c if (mp->dptr == NULL) /* has device been set? */ mp 2920 src/simh/sim_tmxr.c mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */ mp 2922 src/simh/sim_tmxr.c if (mp->dptr) { mp 2923 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { mp 2924 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; mp 2925 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; mp 2926 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; mp 2927 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; mp 2930 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 2954 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; mp 2958 src/simh/sim_tmxr.c fprintf(st, "Multiplexer device: %s", (mp->dptr ? sim_dname (mp->dptr) : "")); mp 2959 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 2961 src/simh/sim_tmxr.c tmxr_show_lines(st, NULL, 0, mp); mp 2963 src/simh/sim_tmxr.c if (mp->packet) mp 2965 src/simh/sim_tmxr.c if (mp->datagram) mp 2967 src/simh/sim_tmxr.c if (mp->notelnet) mp 2969 src/simh/sim_tmxr.c if (mp->modem_control) mp 2971 src/simh/sim_tmxr.c if (mp->buffered) mp 2972 src/simh/sim_tmxr.c fprintf(st, ", Buffered=%d", mp->buffered); mp 2973 src/simh/sim_tmxr.c attach = tmxr_mux_attach_string (NULL, mp); mp 2977 src/simh/sim_tmxr.c tmxr_show_summ(st, NULL, 0, mp); mp 2978 src/simh/sim_tmxr.c fprintf(st, ", sessions=%d", mp->sessions); mp 2979 src/simh/sim_tmxr.c if (mp->lines == 1) { mp 2980 src/simh/sim_tmxr.c if (mp->ldsc->rxbps) { mp 2981 src/simh/sim_tmxr.c fprintf(st, ", Speed=%lu", (unsigned long)mp->ldsc->rxbps); mp 2982 src/simh/sim_tmxr.c if (mp->ldsc->rxbpsfactor != TMXR_RX_BPS_UNIT_SCALE) mp 2983 src/simh/sim_tmxr.c fprintf(st, "*%.0f", mp->ldsc->rxbpsfactor/TMXR_RX_BPS_UNIT_SCALE); mp 2988 src/simh/sim_tmxr.c if (mp->ring_start_time) { mp 2989 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 2991 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++) { mp 2992 src/simh/sim_tmxr.c lp = mp->ldsc + j; mp 2993 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 2994 src/simh/sim_tmxr.c if (lp->dptr && (mp->dptr != lp->dptr)) mp 2997 src/simh/sim_tmxr.c if (mp->notelnet != lp->notelnet) mp 2999 src/simh/sim_tmxr.c if (lp->uptr && (lp->uptr != lp->mp->uptr)) mp 3001 src/simh/sim_tmxr.c if (mp->modem_control != lp->modem_control) mp 3034 src/simh/sim_tmxr.c t_stat tmxr_close_master (TMXR *mp) mp 3039 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ mp 3040 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 3076 src/simh/sim_tmxr.c if (mp->master) mp 3077 src/simh/sim_tmxr.c sim_close_sock (mp->master); /* close master socket */ mp 3078 src/simh/sim_tmxr.c mp->master = 0; mp 3079 src/simh/sim_tmxr.c FREE (mp->port); mp 3080 src/simh/sim_tmxr.c mp->port = NULL; mp 3081 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { mp 3082 src/simh/sim_tmxr.c sim_close_sock (mp->ring_sock); mp 3083 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 3084 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 3085 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 3086 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 3088 src/simh/sim_tmxr.c _tmxr_remove_from_open_list (mp); mp 3097 src/simh/sim_tmxr.c t_stat tmxr_detach (TMXR *mp, UNIT *uptr) mp 3103 src/simh/sim_tmxr.c tmxr_close_master (mp); /* close master socket */ mp 3107 src/simh/sim_tmxr.c mp->last_poll_time = 0; mp 3108 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 3109 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 3110 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; mp 3564 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3571 src/simh/sim_tmxr.c lp = tmxr_get_ldsc (uptr, cptr, mp, &status); /* get referenced line */ mp 3590 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3595 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3609 src/simh/sim_tmxr.c if (mp->uptr) /* attached?, then update attach string */ mp 3610 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3618 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3623 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3632 src/simh/sim_tmxr.c if (mp->uptr) mp 3633 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3641 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3644 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3683 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3687 src/simh/sim_tmxr.c t_addr low, high, max = (t_addr) mp->lines - 1; mp 3693 src/simh/sim_tmxr.c if (mp->lnorder == NULL) /* line connection order undefined? */ mp 3699 src/simh/sim_tmxr.c list = (int32 *) calloc (mp->lines, sizeof (int32)); /* allocate new line order array */ mp 3703 src/simh/sim_tmxr.c set = (t_bool *) calloc (mp->lines, sizeof (t_bool)); /* allocate line set tracking array */ mp 3757 src/simh/sim_tmxr.c memcpy (mp->lnorder, list, mp->lines * sizeof (int32)); /* copy working array to connection array */ mp 3785 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3786 src/simh/sim_tmxr.c int32 *iptr = mp->lnorder; mp 3793 src/simh/sim_tmxr.c fprintf (st, "Order=0-%d\n", mp->lines - 1); /* print full line range */ mp 3798 src/simh/sim_tmxr.c for (j = 1; j <= mp->lines; j++) { /* print remaining lines in order list */ mp 3799 src/simh/sim_tmxr.c if (j < mp->lines) /* more lines to process? */ mp 3836 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3839 src/simh/sim_tmxr.c if (mp == NULL) mp 3841 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) mp 3842 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3845 src/simh/sim_tmxr.c if (mp->lines > 1) mp 3856 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3859 src/simh/sim_tmxr.c if (mp == NULL) mp 3861 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { mp 3862 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3863 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { mp 3864 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3868 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); mp 3870 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3872 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i); mp 3876 src/simh/sim_tmxr.c fprintf (st, (mp->lines == 1? "disconnected\n": "all disconnected\n")); mp 3884 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3886 src/simh/sim_tmxr.c if (mp == NULL) mp 3888 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)