mp 1218 src/dps8/dps8_utils.c char * sp, * mp, * reset_string, * reset_mask, * sn; mp 1222 src/dps8/dps8_utils.c mp = mask; mp 1226 src/dps8/dps8_utils.c switch (* mp) mp 1233 src/dps8/dps8_utils.c mp ++; mp 1237 src/dps8/dps8_utils.c if (* mp == * sp) mp 1240 src/dps8/dps8_utils.c mp ++; mp 1249 src/dps8/dps8_utils.c if (* (mp + 1) == '\0') mp 1253 src/dps8/dps8_utils.c if ((sn = strchr (sp, * (mp + 1))) == NULL) mp 1260 src/dps8/dps8_utils.c reset_mask = mp; mp 1263 src/dps8/dps8_utils.c mp = mp + 2; mp 1268 src/dps8/dps8_utils.c switch (* mp) mp 1278 src/dps8/dps8_utils.c mp ++; mp 1281 src/dps8/dps8_utils.c if (* mp == * sp) mp 1284 src/dps8/dps8_utils.c mp ++; mp 1298 src/dps8/dps8_utils.c mp = reset_mask; mp 1907 src/simh/sim_console.c sim_con_tmxr.ldsc->mp = &sim_con_tmxr; mp 250 src/simh/sim_tmxr.c if ((!lp->mp->buffered) && (!lp->txbfd)) { mp 338 src/simh/sim_tmxr.c static void tmxr_report_connection (TMXR *mp, TMLN *lp) mp 349 src/simh/sim_tmxr.c if (mp->dptr) { /* device defined? */ mp 351 src/simh/sim_tmxr.c sim_dname (mp->dptr)); mp 353 src/simh/sim_tmxr.c if (mp->lines > 1) /* more than one line? */ mp 354 src/simh/sim_tmxr.c (void)sprintf (lmsg, ", line %d", (int)(lp-mp->ldsc));/* report the line number */ mp 360 src/simh/sim_tmxr.c if (!mp->buffered) { mp 564 src/simh/sim_tmxr.c static TMLN *tmxr_find_ldsc (UNIT *uptr, int32 val, const TMXR *mp) mp 566 src/simh/sim_tmxr.c if (mp == NULL) /* invalid multiplexer descriptor? */ mp 574 src/simh/sim_tmxr.c if ((val < 0) || (val >= mp->lines)) /* invalid line? */ mp 576 src/simh/sim_tmxr.c return mp->ldsc + val; /* line descriptor */ mp 595 src/simh/sim_tmxr.c static TMLN *tmxr_get_ldsc (UNIT *uptr, const char *cptr, TMXR *mp, t_stat *status) mp 601 src/simh/sim_tmxr.c if (mp == NULL) /* missing mux descriptor? */ mp 605 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, mp->lines, mp); /* determine line from unit */ mp 615 src/simh/sim_tmxr.c ln = get_uint (cptr, 10, mp->lines - 1, &code); /* get line number */ mp 618 src/simh/sim_tmxr.c lp = mp->ldsc + (int32) ln; /* use as index to determine line */ mp 667 src/simh/sim_tmxr.c static char *tmxr_mux_attach_string(char *old, TMXR *mp) mp 678 src/simh/sim_tmxr.c if (mp->port) /* copy port */ mp 679 src/simh/sim_tmxr.c (void)sprintf (growstring(&tptr, 33 + strlen (mp->port)), "%s%s", mp 680 src/simh/sim_tmxr.c mp->port, mp->notelnet ? ";notelnet" : ""); mp 681 src/simh/sim_tmxr.c if (mp->logfiletmpl[0]) /* logfile info */ mp 682 src/simh/sim_tmxr.c (void)sprintf (growstring(&tptr, 7 + strlen (mp->logfiletmpl)), ",Log=%s", mp 683 src/simh/sim_tmxr.c mp->logfiletmpl); mp 686 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { mp 688 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 697 src/simh/sim_tmxr.c if (mp->lines == 1) mp 731 src/simh/sim_tmxr.c if ((lp->mp->lines > 1) || (lp->port)) mp 732 src/simh/sim_tmxr.c (void)sprintf (growstring(&tptr, 32), "Line=%d", (int)(lp-lp->mp->ldsc)); mp 733 src/simh/sim_tmxr.c if (lp->modem_control != lp->mp->modem_control) mp 735 src/simh/sim_tmxr.c if (lp->txbfd && (lp->txbsz != lp->mp->buffered)) mp 737 src/simh/sim_tmxr.c if (!lp->txbfd && (lp->mp->buffered > 0)) mp 739 src/simh/sim_tmxr.c if (lp->mp->datagram != lp->datagram) mp 741 src/simh/sim_tmxr.c if (lp->mp->packet != lp->packet) mp 745 src/simh/sim_tmxr.c lp->port, ((lp->mp->notelnet != lp->notelnet) && \ mp 750 src/simh/sim_tmxr.c ((lp->mp->notelnet != lp->notelnet) && \ mp 798 src/simh/sim_tmxr.c int32 tmxr_poll_conn (TMXR *mp) mp 812 src/simh/sim_tmxr.c if (mp->last_poll_time == 0) { /* first poll initializations */ mp 813 src/simh/sim_tmxr.c UNIT *uptr = mp->uptr; mp 818 src/simh/sim_tmxr.c if (mp->poll_interval == 0) /* Assure reasonable polling interval */ mp 819 src/simh/sim_tmxr.c mp->poll_interval = TMXR_DEFAULT_CONNECT_POLL_INTERVAL; mp 825 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 826 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 828 src/simh/sim_tmxr.c if (!(mp->uptr->dynflags & TMUF_NOASYNCH)) { /* if asynch not disabled */ mp 835 src/simh/sim_tmxr.c if ((poll_time - mp->last_poll_time) < mp->poll_interval*1000) mp 895 src/simh/sim_tmxr.c mp->last_poll_time = poll_time; mp 899 src/simh/sim_tmxr.c if (mp->master) { mp 900 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { /* Use currently 'ringing' socket if one is active */ mp 901 src/simh/sim_tmxr.c newsock = mp->ring_sock; mp 902 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 903 src/simh/sim_tmxr.c address = mp->ring_ipad; mp 904 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 907 src/simh/sim_tmxr.c newsock = sim_accept_conn_ex (mp->master, &address, (mp->packet ? SIM_SOCK_OPT_NODELAY : 0));/* poll connect */ mp 911 src/simh/sim_tmxr.c op = mp->lnorder; /* get line connection order list pointer */ mp 912 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ mp 913 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 915 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 916 src/simh/sim_tmxr.c if (op && (*op >= 0) && (*op < mp->lines)) /* order list present and valid? */ mp 921 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 930 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ mp 933 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ mp 934 src/simh/sim_tmxr.c lp = mp->ldsc + j; /* get pointer to line descriptor */ mp 945 src/simh/sim_tmxr.c if (mp->ring_start_time == 0) { mp 946 src/simh/sim_tmxr.c mp->ring_start_time = poll_time; mp 947 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 948 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 951 src/simh/sim_tmxr.c if ((poll_time - mp->ring_start_time) < TMXR_MODEM_RING_TIME*1000) { mp 952 src/simh/sim_tmxr.c mp->ring_sock = newsock; mp 953 src/simh/sim_tmxr.c mp->ring_ipad = address; mp 959 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 960 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 965 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 979 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 984 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; /* apply mux default telnet setting */ mp 1002 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 1010 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ mp 1012 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ mp 1092 src/simh/sim_tmxr.c ++mp->sessions; /* count the new session */ mp 1135 src/simh/sim_tmxr.c tmxr_report_connection (mp, lp); mp 1163 src/simh/sim_tmxr.c (lp->mp->packet ? SIM_SOCK_OPT_NODELAY : 0) | mp 1272 src/simh/sim_tmxr.c (lp->mp && (lp->mp->ring_sock))) { mp 1276 src/simh/sim_tmxr.c lp->sock = lp->mp->ring_sock; /* save socket */ mp 1277 src/simh/sim_tmxr.c lp->mp->ring_sock = INVALID_SOCKET; mp 1278 src/simh/sim_tmxr.c lp->ipad = lp->mp->ring_ipad; /* ip address */ mp 1279 src/simh/sim_tmxr.c lp->mp->ring_ipad = NULL; mp 1280 src/simh/sim_tmxr.c lp->mp->ring_start_time = 0; mp 1282 src/simh/sim_tmxr.c lp->notelnet = lp->mp->notelnet; /* apply mux default telnet setting */ mp 1300 src/simh/sim_tmxr.c tmxr_report_connection (lp->mp, lp); mp 1304 src/simh/sim_tmxr.c for (ln = 0; ln < lp->mp->lines; ln++) { mp 1305 src/simh/sim_tmxr.c TMLN *tlp = lp->mp->ldsc + ln; mp 1312 src/simh/sim_tmxr.c if ((lp->master) || (lp->mp && lp->mp->master) || mp 1319 src/simh/sim_tmxr.c dptr = (lp->dptr ? lp->dptr : (lp->mp ? lp->mp->dptr : NULL)); mp 1327 src/simh/sim_tmxr.c if (lp->mp && lp->modem_control) { /* This API ONLY works on modem_control enabled multiplexer lines */ mp 1577 src/simh/sim_tmxr.c void tmxr_poll_rx (TMXR *mp) mp 1582 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1583 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1803 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1804 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 1948 src/simh/sim_tmxr.c void tmxr_poll_tx (TMXR *mp) mp 1953 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ mp 1954 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ mp 2070 src/simh/sim_tmxr.c if (lp->mp) { mp 2074 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 2078 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, lp->mp); mp 2081 src/simh/sim_tmxr.c tmxr_detach (lp->mp, uptr); mp 2154 src/simh/sim_tmxr.c if ((!uptr) && (lp->mp)) mp 2155 src/simh/sim_tmxr.c uptr = lp->mp->uptr; mp 2173 src/simh/sim_tmxr.c t_stat tmxr_open_master (TMXR *mp, CONST char *cptr) mp 2187 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2188 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2189 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2190 src/simh/sim_tmxr.c lp->modem_control = mp->modem_control; mp 2194 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2195 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 2196 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2197 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2208 src/simh/sim_tmxr.c datagram = mp->datagram; mp 2209 src/simh/sim_tmxr.c packet = mp->packet; mp 2210 src/simh/sim_tmxr.c if (mp->buffered) mp 2211 src/simh/sim_tmxr.c (void)sprintf(buffered, "%d", mp->buffered); mp 2213 src/simh/sim_tmxr.c notelnet = listennotelnet = mp->notelnet; mp 2214 src/simh/sim_tmxr.c modem_control = mp->modem_control; mp 2228 src/simh/sim_tmxr.c nextline = (int32) get_uint (cptr, 10, mp->lines-1, &r); mp 2380 src/simh/sim_tmxr.c if (modem_control != mp->modem_control) mp 2393 src/simh/sim_tmxr.c strncpy(mp->logfiletmpl, logfiletmpl, sizeof(mp->logfiletmpl)-1); mp 2403 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { mp 2404 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2420 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2421 src/simh/sim_tmxr.c (void)sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); mp 2423 src/simh/sim_tmxr.c (void)strcpy (lp->txlogname, mp->logfiletmpl); mp 2434 src/simh/sim_tmxr.c mp->buffered = atoi(buffered); mp 2435 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ mp 2436 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2437 src/simh/sim_tmxr.c if (mp->buffered) { mp 2438 src/simh/sim_tmxr.c lp->txbsz = mp->buffered; mp 2440 src/simh/sim_tmxr.c lp->rxbsz = mp->buffered; mp 2489 src/simh/sim_tmxr.c mp->logfiletmpl[0] = '\0'; mp 2490 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ mp 2491 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2506 src/simh/sim_tmxr.c if (mp->port) { /* close prior listener */ mp 2507 src/simh/sim_tmxr.c sim_close_sock (mp->master); mp 2508 src/simh/sim_tmxr.c mp->master = 0; mp 2509 src/simh/sim_tmxr.c FREE (mp->port); mp 2510 src/simh/sim_tmxr.c mp->port = NULL; mp 2513 src/simh/sim_tmxr.c mp->port = (char *)realloc (mp->port, 1 + strlen (listen)); mp 2514 src/simh/sim_tmxr.c if (!mp->port) mp 2526 src/simh/sim_tmxr.c (void)strcpy (mp->port, listen); /* save port */ mp 2527 src/simh/sim_tmxr.c mp->master = sock; /* save master socket */ mp 2528 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 2529 src/simh/sim_tmxr.c if (mp->ring_ipad) FREE (mp->ring_ipad); mp 2530 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 2531 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 2532 src/simh/sim_tmxr.c mp->notelnet = listennotelnet; /* save desired telnet behavior flag */ mp 2533 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ mp 2534 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2535 src/simh/sim_tmxr.c lp->mp = mp; /* set the back pointer */ mp 2536 src/simh/sim_tmxr.c lp->packet = mp->packet; mp 2544 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2547 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 mp 2548 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 2555 src/simh/sim_tmxr.c if (mp->lines > 1) mp 2557 src/simh/sim_tmxr.c lp = &mp->ldsc[0]; mp 2600 src/simh/sim_tmxr.c lp->mp = mp; mp 2633 src/simh/sim_tmxr.c lp = &mp->ldsc[line]; mp 2634 src/simh/sim_tmxr.c lp->mp = mp; mp 2719 src/simh/sim_tmxr.c if ((mp->lines == 1) && (mp->master)) mp 2743 src/simh/sim_tmxr.c if (listennotelnet != mp->notelnet) mp 2746 src/simh/sim_tmxr.c lp->notelnet = mp->notelnet; mp 2829 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 2852 src/simh/sim_tmxr.c t_stat tmxr_set_line_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2854 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2856 src/simh/sim_tmxr.c mp->ldsc[line].uptr = uptr_poll; mp 2879 src/simh/sim_tmxr.c t_stat tmxr_set_line_output_unit (TMXR *mp, int line, UNIT *uptr_poll) mp 2881 src/simh/sim_tmxr.c if ((line < 0) || (line >= mp->lines)) mp 2883 src/simh/sim_tmxr.c mp->ldsc[line].o_uptr = uptr_poll; mp 2991 src/simh/sim_tmxr.c t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async) mp 2996 src/simh/sim_tmxr.c r = tmxr_open_master (mp, cptr); /* open master socket */ mp 2999 src/simh/sim_tmxr.c mp->uptr = uptr; /* save unit for polling */ mp 3000 src/simh/sim_tmxr.c uptr->filename = tmxr_mux_attach_string (uptr->filename, mp);/* save */ mp 3002 src/simh/sim_tmxr.c uptr->tmxr = (void *)mp; mp 3003 src/simh/sim_tmxr.c if ((mp->lines > 1) || mp 3004 src/simh/sim_tmxr.c ((mp->master == 0) && mp 3005 src/simh/sim_tmxr.c (mp->ldsc[0].connecting == 0) mp 3011 src/simh/sim_tmxr.c if (mp->dptr == NULL) /* has device been set? */ mp 3012 src/simh/sim_tmxr.c mp->dptr = find_dev_from_unit (uptr); /* no, so set device now */ mp 3014 src/simh/sim_tmxr.c if (mp->dptr) { mp 3015 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { mp 3016 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; mp 3017 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; mp 3018 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; mp 3019 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; mp 3022 src/simh/sim_tmxr.c tmxr_add_to_open_list (mp); mp 3046 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; mp 3050 src/simh/sim_tmxr.c fprintf(st, "Multiplexer device: %s", (mp->dptr ? sim_dname (mp->dptr) : "")); mp 3051 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 3053 src/simh/sim_tmxr.c tmxr_show_lines(st, NULL, 0, mp); mp 3055 src/simh/sim_tmxr.c if (mp->packet) mp 3057 src/simh/sim_tmxr.c if (mp->datagram) mp 3059 src/simh/sim_tmxr.c if (mp->notelnet) mp 3061 src/simh/sim_tmxr.c if (mp->modem_control) mp 3063 src/simh/sim_tmxr.c if (mp->buffered) mp 3064 src/simh/sim_tmxr.c fprintf(st, ", Buffered=%d", mp->buffered); mp 3065 src/simh/sim_tmxr.c attach = tmxr_mux_attach_string (NULL, mp); mp 3069 src/simh/sim_tmxr.c tmxr_show_summ(st, NULL, 0, mp); mp 3070 src/simh/sim_tmxr.c fprintf(st, ", sessions=%d", mp->sessions); mp 3071 src/simh/sim_tmxr.c if (mp->lines == 1) { mp 3072 src/simh/sim_tmxr.c if (mp->ldsc->rxbps) { mp 3073 src/simh/sim_tmxr.c fprintf(st, ", Speed=%lu", (unsigned long)mp->ldsc->rxbps); mp 3074 src/simh/sim_tmxr.c if (mp->ldsc->rxbpsfactor != TMXR_RX_BPS_UNIT_SCALE) mp 3075 src/simh/sim_tmxr.c fprintf(st, "*%.0f", mp->ldsc->rxbpsfactor/TMXR_RX_BPS_UNIT_SCALE); mp 3080 src/simh/sim_tmxr.c if (mp->ring_start_time) { mp 3082 src/simh/sim_tmxr.c mp->ring_ipad, (unsigned long)sim_os_msec () - (unsigned long)mp->ring_start_time); mp 3084 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++) { mp 3085 src/simh/sim_tmxr.c lp = mp->ldsc + j; mp 3086 src/simh/sim_tmxr.c if (mp->lines > 1) { mp 3087 src/simh/sim_tmxr.c if (lp->dptr && (mp->dptr != lp->dptr)) mp 3090 src/simh/sim_tmxr.c if (mp->notelnet != lp->notelnet) mp 3092 src/simh/sim_tmxr.c if (lp->uptr && (lp->uptr != lp->mp->uptr)) mp 3094 src/simh/sim_tmxr.c if (mp->modem_control != lp->modem_control) mp 3127 src/simh/sim_tmxr.c t_stat tmxr_close_master (TMXR *mp) mp 3132 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ mp 3133 src/simh/sim_tmxr.c lp = mp->ldsc + i; mp 3169 src/simh/sim_tmxr.c if (mp->master) mp 3170 src/simh/sim_tmxr.c sim_close_sock (mp->master); /* close master socket */ mp 3171 src/simh/sim_tmxr.c mp->master = 0; mp 3172 src/simh/sim_tmxr.c FREE (mp->port); mp 3173 src/simh/sim_tmxr.c mp->port = NULL; mp 3174 src/simh/sim_tmxr.c if (mp->ring_sock != INVALID_SOCKET) { mp 3175 src/simh/sim_tmxr.c sim_close_sock (mp->ring_sock); mp 3176 src/simh/sim_tmxr.c mp->ring_sock = INVALID_SOCKET; mp 3177 src/simh/sim_tmxr.c FREE (mp->ring_ipad); mp 3178 src/simh/sim_tmxr.c mp->ring_ipad = NULL; mp 3179 src/simh/sim_tmxr.c mp->ring_start_time = 0; mp 3181 src/simh/sim_tmxr.c _tmxr_remove_from_open_list (mp); mp 3190 src/simh/sim_tmxr.c t_stat tmxr_detach (TMXR *mp, UNIT *uptr) mp 3196 src/simh/sim_tmxr.c tmxr_close_master (mp); /* close master socket */ mp 3200 src/simh/sim_tmxr.c mp->last_poll_time = 0; mp 3201 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { mp 3202 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; mp 3203 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; mp 3659 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3666 src/simh/sim_tmxr.c lp = tmxr_get_ldsc (uptr, cptr, mp, &status); /* get referenced line */ mp 3685 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3691 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3709 src/simh/sim_tmxr.c if (mp->uptr) /* attached?, then update attach string */ mp 3710 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3718 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3723 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3732 src/simh/sim_tmxr.c if (mp->uptr) mp 3733 src/simh/sim_tmxr.c lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp); mp 3741 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3744 src/simh/sim_tmxr.c lp = tmxr_find_ldsc (uptr, val, mp); /* find line desc */ mp 3783 src/simh/sim_tmxr.c TMXR *mp = (TMXR *) desc; mp 3787 src/simh/sim_tmxr.c t_addr low, high, max = (t_addr) mp->lines - 1; mp 3793 src/simh/sim_tmxr.c if (mp->lnorder == NULL) /* line connection order undefined? */ mp 3799 src/simh/sim_tmxr.c list = (int32 *) calloc (mp->lines, sizeof (int32)); /* allocate new line order array */ mp 3803 src/simh/sim_tmxr.c set = (t_bool *) calloc (mp->lines, sizeof (t_bool)); /* allocate line set tracking array */ mp 3857 src/simh/sim_tmxr.c memcpy (mp->lnorder, list, mp->lines * sizeof (int32)); /* copy working array to connection array */ mp 3885 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3886 src/simh/sim_tmxr.c int32 *iptr = mp->lnorder; mp 3893 src/simh/sim_tmxr.c fprintf (st, "Order=0-%d\n", mp->lines - 1); /* print full line range */ mp 3898 src/simh/sim_tmxr.c for (j = 1; j <= mp->lines; j++) { /* print remaining lines in order list */ mp 3899 src/simh/sim_tmxr.c if (j < mp->lines) /* more lines to process? */ mp 3936 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3939 src/simh/sim_tmxr.c if (mp == NULL) mp 3941 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) mp 3942 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3945 src/simh/sim_tmxr.c if (mp->lines > 1) mp 3956 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3959 src/simh/sim_tmxr.c if (mp == NULL) mp 3961 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { mp 3962 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3963 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { mp 3964 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3968 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); mp 3970 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) mp 3972 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i); mp 3976 src/simh/sim_tmxr.c fprintf (st, (mp->lines == 1? "disconnected\n": "all disconnected\n")); mp 3984 src/simh/sim_tmxr.c const TMXR *mp = (const TMXR *) desc; mp 3986 src/simh/sim_tmxr.c if (mp == NULL) mp 3988 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 278 src/simh/sim_tmxr.h do { if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) \ mp 282 src/simh/sim_tmxr.h do { if (sim_deb && (lp)->mp && (lp)->mp->dptr && ((dbits) & (lp)->mp->dptr->dctrl)) \ mp 283 src/simh/sim_tmxr.h sim_debug (dbits, (lp)->mp->dptr, "%s", msg); } while (0) mp 286 src/simh/sim_tmxr.h do { if (sim_deb && (val) && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_RET & (lp)->mp->dptr->dctrl)) \ mp 287 src/simh/sim_tmxr.h { if ((lp)->rxbps) sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x - Next after: %.0f\n", \ mp 288 src/simh/sim_tmxr.h (int)((lp)-(lp)->mp->ldsc), val, (lp)->rxnexttime); \ mp 289 src/simh/sim_tmxr.h else sim_debug (TMXR_DBG_RET, (lp)->mp->dptr, "Ln%d: 0x%x\n", (int)((lp)-(lp)->mp->ldsc), val); \ mp 292 src/simh/sim_tmxr.h # define tmxr_debug_trace(mp, msg) \ mp 293 src/simh/sim_tmxr.h do { if (sim_deb && (mp)->dptr && (TMXR_DBG_TRC & (mp)->dptr->dctrl)) \ mp 294 src/simh/sim_tmxr.h sim_debug (TMXR_DBG_TRC, mp->dptr, "%s\n", (msg)); } while (0) mp 297 src/simh/sim_tmxr.h do { if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_TRC & (lp)->mp->dptr->dctrl)) \ mp 298 src/simh/sim_tmxr.h sim_debug (TMXR_DBG_TRC, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0) mp 300 src/simh/sim_tmxr.h # define tmxr_debug_connect(mp, msg) \ mp 301 src/simh/sim_tmxr.h do { if (sim_deb && (mp)->dptr && (TMXR_DBG_CON & (mp)->dptr->dctrl)) \ mp 302 src/simh/sim_tmxr.h sim_debug (TMXR_DBG_CON, mp->dptr, "%s\n", (msg)); } while (0) mp 305 src/simh/sim_tmxr.h do { if (sim_deb && (lp)->mp && (lp)->mp->dptr && (TMXR_DBG_CON & (lp)->mp->dptr->dctrl)) \ mp 306 src/simh/sim_tmxr.h sim_debug (TMXR_DBG_CON, (lp)->mp->dptr, "Ln%d:%s\n", (int)((lp)-(lp)->mp->ldsc), (msg)); } while (0) mp 308 src/simh/sim_tmxr.h # define tmxr_attach(mp, uptr, cptr) tmxr_attach_ex(mp, uptr, cptr, FALSE)