unit_idx 448 src/dps8/dps8_cable.c uint unit_idx; unit_idx 451 src/dps8/dps8_cable.c if (name_match (param, "IOM", & unit_idx)) unit_idx 453 src/dps8/dps8_cable.c if (unit_idx >= N_IOM_UNITS_MAX) unit_idx 455 src/dps8/dps8_cable.c sim_printf ("cable SCU: IOM unit number out of range <%d>\n", unit_idx); unit_idx 481 src/dps8/dps8_cable.c unit_idx, (uint) iom_port_num); unit_idx 485 src/dps8/dps8_cable.c else if (name_match (param, "CPU", & unit_idx)) unit_idx 487 src/dps8/dps8_cable.c if (unit_idx >= N_CPU_UNITS_MAX) unit_idx 489 src/dps8/dps8_cable.c sim_printf ("cable SCU: IOM unit number out of range <%d>\n", unit_idx); unit_idx 538 src/dps8/dps8_cable.c (uint) scu_subport_num, unit_idx, (uint) cpu_port_num, is_exp); unit_idx 685 src/dps8/dps8_cable.c uint unit_idx; unit_idx 688 src/dps8/dps8_cable.c if (name_match (param, "IPC", & unit_idx)) unit_idx 690 src/dps8/dps8_cable.c if (unit_idx >= N_IPC_UNITS_MAX) unit_idx 692 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: IPC unit number out of range <%d>\n", unit_idx); unit_idx 709 src/dps8/dps8_cable.c unit_idx, (uint) ipc_port_num, unit_idx 712 src/dps8/dps8_cable.c & cables->ipc_to_iom[unit_idx][ipc_port_num], unit_idx 714 src/dps8/dps8_cable.c & ipc_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd? unit_idx 718 src/dps8/dps8_cable.c if (name_match (param, "MSP", & unit_idx)) unit_idx 720 src/dps8/dps8_cable.c if (unit_idx >= N_MSP_UNITS_MAX) unit_idx 722 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: MSP unit number out of range <%d>\n", unit_idx); unit_idx 739 src/dps8/dps8_cable.c unit_idx, (uint) msp_port_num, unit_idx 742 src/dps8/dps8_cable.c & cables->msp_to_iom[unit_idx][msp_port_num], unit_idx 744 src/dps8/dps8_cable.c & msp_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd? unit_idx 748 src/dps8/dps8_cable.c if (name_match (param, "MTP", & unit_idx)) unit_idx 750 src/dps8/dps8_cable.c if (unit_idx >= N_MTP_UNITS_MAX) unit_idx 752 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: MTP unit number out of range <%d>\n", unit_idx); unit_idx 769 src/dps8/dps8_cable.c unit_idx, (uint) mtp_port_num, unit_idx 772 src/dps8/dps8_cable.c & cables->mtp_to_iom[unit_idx][mtp_port_num], unit_idx 774 src/dps8/dps8_cable.c & mtp_unit [unit_idx], mt_iom_cmd); // XXX mtp_iom_cmd? unit_idx 778 src/dps8/dps8_cable.c if (name_match (param, "URP", & unit_idx)) unit_idx 780 src/dps8/dps8_cable.c if (unit_idx >= N_URP_UNITS_MAX) unit_idx 782 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: URP unit number out of range <%d>\n", unit_idx); unit_idx 800 src/dps8/dps8_cable.c unit_idx, (uint) urp_port_num, unit_idx 803 src/dps8/dps8_cable.c & cables->urp_to_iom[unit_idx][urp_port_num], unit_idx 805 src/dps8/dps8_cable.c & urp_unit [unit_idx], urp_iom_cmd); unit_idx 809 src/dps8/dps8_cable.c if (name_match (param, "OPC", & unit_idx)) unit_idx 811 src/dps8/dps8_cable.c if (unit_idx >= N_OPC_UNITS_MAX) unit_idx 813 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: OPC unit number out of range <%d>\n", unit_idx); unit_idx 820 src/dps8/dps8_cable.c unit_idx, opc_port_num, unit_idx 823 src/dps8/dps8_cable.c & cables->opc_to_iom[unit_idx][opc_port_num], unit_idx 825 src/dps8/dps8_cable.c & opc_unit [unit_idx], opc_iom_cmd); unit_idx 829 src/dps8/dps8_cable.c if (name_match (param, "FNP", & unit_idx)) unit_idx 831 src/dps8/dps8_cable.c if (unit_idx >= N_FNP_UNITS_MAX) unit_idx 833 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: FNP unit number out of range <%d>\n", unit_idx); unit_idx 840 src/dps8/dps8_cable.c unit_idx, fnp_port_num, unit_idx 843 src/dps8/dps8_cable.c & cables->fnp_to_iom[unit_idx][fnp_port_num], unit_idx 845 src/dps8/dps8_cable.c & fnp_unit [unit_idx], fnp_iom_cmd); unit_idx 854 src/dps8/dps8_cable.c if (name_match (param, "ABSI", & unit_idx)) unit_idx 856 src/dps8/dps8_cable.c if (unit_idx >= N_ABSI_UNITS_MAX) unit_idx 858 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: ABSI unit number out of range <%d>\n", unit_idx); unit_idx 865 src/dps8/dps8_cable.c unit_idx, absi_port_num, unit_idx 868 src/dps8/dps8_cable.c & cables->absi_to_iom[unit_idx][absi_port_num], unit_idx 870 src/dps8/dps8_cable.c & absi_unit [unit_idx], absi_iom_cmd); unit_idx 884 src/dps8/dps8_cable.c if (name_match (param, "MGP", & unit_idx)) unit_idx 886 src/dps8/dps8_cable.c if (unit_idx >= N_MGP_UNITS_MAX) unit_idx 888 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: MGP unit number out of range <%d>\n", unit_idx); unit_idx 895 src/dps8/dps8_cable.c unit_idx, mgp_port_num, unit_idx 898 src/dps8/dps8_cable.c & cables->mgp_to_iom[unit_idx][mgp_port_num], unit_idx 900 src/dps8/dps8_cable.c & mgp_unit [unit_idx], mgp_iom_cmd); unit_idx 914 src/dps8/dps8_cable.c if (name_match (param, "SKC", & unit_idx)) unit_idx 916 src/dps8/dps8_cable.c if (unit_idx >= N_SKC_UNITS_MAX) unit_idx 918 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: SKC unit number out of range <%d>\n", unit_idx); unit_idx 925 src/dps8/dps8_cable.c unit_idx, skc_port_num, unit_idx 928 src/dps8/dps8_cable.c & cables->sk_to_iom[unit_idx][skc_port_num], unit_idx 930 src/dps8/dps8_cable.c & sk_unit [unit_idx], skc_iom_cmd); unit_idx 983 src/dps8/dps8_cable.c uint unit_idx, unit_idx 1028 src/dps8/dps8_cable.c here->unit_idx = unit_idx; unit_idx 1221 src/dps8/dps8_cable.c uint unit_idx; unit_idx 1224 src/dps8/dps8_cable.c if (name_match (param, "RDR", & unit_idx)) unit_idx 1226 src/dps8/dps8_cable.c if (unit_idx >= N_RDR_UNITS_MAX) unit_idx 1228 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1237 src/dps8/dps8_cable.c unit_idx, unit_idx 1239 src/dps8/dps8_cable.c & cables->rdr_to_urp[unit_idx], unit_idx 1244 src/dps8/dps8_cable.c if (name_match (param, "PUN", & unit_idx)) unit_idx 1246 src/dps8/dps8_cable.c if (unit_idx >= N_PUN_UNITS_MAX) unit_idx 1248 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1257 src/dps8/dps8_cable.c unit_idx, unit_idx 1259 src/dps8/dps8_cable.c & cables->pun_to_urp[unit_idx], unit_idx 1264 src/dps8/dps8_cable.c if (name_match (param, "PRT", & unit_idx)) unit_idx 1266 src/dps8/dps8_cable.c if (unit_idx >= N_PRT_UNITS_MAX) unit_idx 1268 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1277 src/dps8/dps8_cable.c unit_idx, unit_idx 1279 src/dps8/dps8_cable.c & cables->prt_to_urp[unit_idx], unit_idx 1664 src/dps8/dps8_cable.c sim_printf (" %4u %4u %4u %10p\n", u, prt, p->unit_idx, (void *) p->iom_cmd); \ unit_idx 202 src/dps8/dps8_cable.h uint unit_idx; unit_idx 1147 src/dps8/dps8_crdpun.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][dev_code].unit_idx; unit_idx 1190 src/dps8/dps8_crdpun.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][dev_code].unit_idx; unit_idx 468 src/dps8/dps8_crdrdr.c uint unitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 918 src/dps8/dps8_crdrdr.c uint unitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 128 src/dps8/dps8_dia.c long unit_idx = DIA_UNIT_IDX (uptr); unit_idx 129 src/dps8/dps8_dia.c if (unit_idx >= (long) N_DIA_UNITS_MAX) unit_idx 132 src/dps8/dps8_dia.c "DIA SHOW CONFIG: Invalid unit number %ld\n", (long) unit_idx); unit_idx 133 src/dps8/dps8_dia.c sim_printf ("error: Invalid unit number %ld\n", (long) unit_idx); unit_idx 137 src/dps8/dps8_dia.c sim_printf ("DIA unit number %ld\n", (long) unit_idx); unit_idx 138 src/dps8/dps8_dia.c struct dia_unit_data * dudp = dia_data.dia_unit_data + unit_idx; unit_idx 1162 src/dps8/dps8_disk.c uint dsk_unit_idx = dev_p[dev_num].unit_idx; unit_idx 1215 src/dps8/dps8_disk.c devUnitIdx = cables->ipc_to_dsk[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1217 src/dps8/dps8_disk.c devUnitIdx = cables->msp_to_dsk[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1425 src/dps8/dps8_mt.c uint unit_idx = p->unit_idx; unit_idx 1429 src/dps8/dps8_mt.c if (mt_unit [unit_idx].filename) unit_idx 1438 src/dps8/dps8_mt.c "%s: unit %d handler %06o\n", __func__, unit_idx, handler); unit_idx 1496 src/dps8/dps8_mt.c uint devUnitIdx = cables->mtp_to_tape[ctlr_unit_idx][dev_code].unit_idx; unit_idx 1125 src/dps8/dps8_prt.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1206 src/dps8/dps8_prt.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1300 src/dps8/dps8_prt.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1393 src/dps8/dps8_prt.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 1737 src/dps8/dps8_prt.c uint devUnitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 333 src/dps8/dps8_socket_dev.c static void skt_socket (uint unit_idx, word5 dev_code, word36 * buffer) unit_idx 384 src/dps8/dps8_socket_dev.c sk_data.fd_unit[fd] = (int) unit_idx; unit_idx 488 src/dps8/dps8_socket_dev.c static void skt_bind (uint unit_idx, word6 dev_code, word36 * buffer) unit_idx 529 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 553 src/dps8/dps8_socket_dev.c static void skt_listen (uint unit_idx, word6 dev_code, word36 * buffer) unit_idx 577 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 580 src/dps8/dps8_socket_dev.c sim_printf ("socket_fd %u fd_unit %d fd_dev_code %u unit_idx %u dev_code %u\n", socket_fd, sk_data.fd_unit[socket_fd], sk_data.fd_dev_code[socket_fd], unit_idx, dev_code); unit_idx 620 src/dps8/dps8_socket_dev.c static int skt_accept (uint unit_idx, word6 dev_code, word36 * buffer) unit_idx 635 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 641 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].accept_fd = socket_fd; unit_idx 642 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].unit_state = unit_accept; unit_idx 646 src/dps8/dps8_socket_dev.c static void skt_close (uint unit_idx, word6 dev_code, word36 * buffer) unit_idx 666 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 674 src/dps8/dps8_socket_dev.c if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_accept && unit_idx 675 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].accept_fd == socket_fd) unit_idx 677 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle; unit_idx 678 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].accept_fd = -1; unit_idx 694 src/dps8/dps8_socket_dev.c static int skt_read8 (uint unit_idx, word6 dev_code, UNUSED uint tally, word36 * buffer) unit_idx 716 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 722 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].read_fd = socket_fd; unit_idx 723 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].read_buffer_sz = count; unit_idx 724 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].unit_state = unit_read; unit_idx 728 src/dps8/dps8_socket_dev.c static int skt_write8 (uint iom_unit_idx, uint chan, uint unit_idx, word6 dev_code, uint tally, word36 * buffer) unit_idx 759 src/dps8/dps8_socket_dev.c if (sk_data.fd_unit[socket_fd] != (int) unit_idx || sk_data.fd_dev_code[socket_fd] != dev_code) unit_idx 854 src/dps8/dps8_socket_dev.c uint unit_idx = get_ctlr_idx (iom_unit_idx, chan); unit_idx 888 src/dps8/dps8_socket_dev.c skt_socket (unit_idx, p->IDCW_DEV_CODE, buffer); unit_idx 913 src/dps8/dps8_socket_dev.c skt_bind (unit_idx, p->IDCW_DEV_CODE, buffer); unit_idx 972 src/dps8/dps8_socket_dev.c skt_listen (unit_idx, p->IDCW_DEV_CODE, buffer); unit_idx 997 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][p->IDCW_DEV_CODE].words_processed = words_processed; unit_idx 999 src/dps8/dps8_socket_dev.c rc = skt_accept (unit_idx, p->IDCW_DEV_CODE, buffer); unit_idx 1028 src/dps8/dps8_socket_dev.c skt_close (unit_idx, p->IDCW_DEV_CODE, buffer); unit_idx 1052 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][p->IDCW_DEV_CODE].words_processed = words_processed; unit_idx 1054 src/dps8/dps8_socket_dev.c rc = skt_read8 (unit_idx, p->IDCW_DEV_CODE, tally, buffer); unit_idx 1082 src/dps8/dps8_socket_dev.c rc = skt_write8 (iom_unit_idx, chan, unit_idx, p->IDCW_DEV_CODE, tally, buffer); unit_idx 1140 src/dps8/dps8_socket_dev.c static void do_try_accept (uint unit_idx, word6 dev_code) unit_idx 1145 src/dps8/dps8_socket_dev.c int fd = accept (sk_data.unit_data[unit_idx][dev_code].accept_fd, (struct sockaddr *) & from, & size); unit_idx 1154 src/dps8/dps8_socket_dev.c sk_data.fd_unit[fd] = (int) unit_idx; unit_idx 1166 src/dps8/dps8_socket_dev.c buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].accept_fd)) & MASK36; unit_idx 1176 src/dps8/dps8_socket_dev.c uint iom_unit_idx = (uint) cables->sk_to_iom[unit_idx][0].iom_unit_idx; unit_idx 1177 src/dps8/dps8_socket_dev.c uint chan = (uint) cables->sk_to_iom[unit_idx][0].chan_num; unit_idx 1178 src/dps8/dps8_socket_dev.c uint words_processed = sk_data.unit_data[unit_idx][dev_code].words_processed; unit_idx 1183 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle; unit_idx 1187 src/dps8/dps8_socket_dev.c static void do_try_read (uint unit_idx, word6 dev_code) unit_idx 1190 src/dps8/dps8_socket_dev.c uint count = sk_data.unit_data[unit_idx][dev_code].read_buffer_sz; unit_idx 1196 src/dps8/dps8_socket_dev.c ssize_t nread = read (sk_data.unit_data[unit_idx][dev_code].read_fd, & netdata, count); unit_idx 1206 src/dps8/dps8_socket_dev.c buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].read_fd)) & MASK36; unit_idx 1207 src/dps8/dps8_socket_dev.c buffer[1] = ((word36) (sk_data.unit_data[unit_idx][dev_code].read_buffer_sz)) & MASK36; unit_idx 1220 src/dps8/dps8_socket_dev.c uint iom_unit_idx = (uint) cables->sk_to_iom[unit_idx][0].iom_unit_idx; unit_idx 1221 src/dps8/dps8_socket_dev.c uint chan = (uint) cables->sk_to_iom[unit_idx][0].chan_num; unit_idx 1222 src/dps8/dps8_socket_dev.c uint words_processed = sk_data.unit_data[unit_idx][dev_code].words_processed; unit_idx 1225 src/dps8/dps8_socket_dev.c sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle; unit_idx 1232 src/dps8/dps8_socket_dev.c for (uint unit_idx = 0; unit_idx < N_SKC_UNITS_MAX; unit_idx ++) unit_idx 1236 src/dps8/dps8_socket_dev.c if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_accept) unit_idx 1238 src/dps8/dps8_socket_dev.c do_try_accept (unit_idx, dev_code); unit_idx 1240 src/dps8/dps8_socket_dev.c else if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_read) unit_idx 1242 src/dps8/dps8_socket_dev.c do_try_read (unit_idx, dev_code); unit_idx 219 src/dps8/dps8_urp.c uint devUnitIdx = cables->urp_to_urd[ctlrUnitIdx][p->IDCW_DEV_CODE].unit_idx;