unit_idx 443 src/dps8/dps8_cable.c uint unit_idx; unit_idx 446 src/dps8/dps8_cable.c if (name_match (param, "IOM", & unit_idx)) unit_idx 448 src/dps8/dps8_cable.c if (unit_idx >= N_IOM_UNITS_MAX) unit_idx 450 src/dps8/dps8_cable.c sim_printf ("cable SCU: IOM unit number out of range <%d>\n", unit_idx); unit_idx 476 src/dps8/dps8_cable.c unit_idx, (uint) iom_port_num); unit_idx 480 src/dps8/dps8_cable.c else if (name_match (param, "CPU", & unit_idx)) unit_idx 482 src/dps8/dps8_cable.c if (unit_idx >= N_CPU_UNITS_MAX) unit_idx 484 src/dps8/dps8_cable.c sim_printf ("cable SCU: IOM unit number out of range <%d>\n", unit_idx); unit_idx 533 src/dps8/dps8_cable.c (uint) scu_subport_num, unit_idx, (uint) cpu_port_num, is_exp); unit_idx 679 src/dps8/dps8_cable.c uint unit_idx; unit_idx 682 src/dps8/dps8_cable.c if (name_match (param, "IPC", & unit_idx)) unit_idx 684 src/dps8/dps8_cable.c if (unit_idx >= N_IPC_UNITS_MAX) unit_idx 686 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: IPC unit number out of range <%d>\n", unit_idx); unit_idx 703 src/dps8/dps8_cable.c unit_idx, (uint) ipc_port_num, unit_idx 706 src/dps8/dps8_cable.c & cables->ipc_to_iom[unit_idx][ipc_port_num], unit_idx 708 src/dps8/dps8_cable.c & ipc_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd? unit_idx 712 src/dps8/dps8_cable.c if (name_match (param, "MSP", & unit_idx)) unit_idx 714 src/dps8/dps8_cable.c if (unit_idx >= N_MSP_UNITS_MAX) unit_idx 716 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: MSP unit number out of range <%d>\n", unit_idx); unit_idx 733 src/dps8/dps8_cable.c unit_idx, (uint) msp_port_num, unit_idx 736 src/dps8/dps8_cable.c & cables->msp_to_iom[unit_idx][msp_port_num], unit_idx 738 src/dps8/dps8_cable.c & msp_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd? unit_idx 742 src/dps8/dps8_cable.c if (name_match (param, "MTP", & unit_idx)) unit_idx 744 src/dps8/dps8_cable.c if (unit_idx >= N_MTP_UNITS_MAX) unit_idx 746 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: MTP unit number out of range <%d>\n", unit_idx); unit_idx 763 src/dps8/dps8_cable.c unit_idx, (uint) mtp_port_num, unit_idx 766 src/dps8/dps8_cable.c & cables->mtp_to_iom[unit_idx][mtp_port_num], unit_idx 768 src/dps8/dps8_cable.c & mtp_unit [unit_idx], mt_iom_cmd); // XXX mtp_iom_cmd? unit_idx 772 src/dps8/dps8_cable.c if (name_match (param, "URP", & unit_idx)) unit_idx 774 src/dps8/dps8_cable.c if (unit_idx >= N_URP_UNITS_MAX) unit_idx 776 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: URP unit number out of range <%d>\n", unit_idx); unit_idx 794 src/dps8/dps8_cable.c unit_idx, (uint) urp_port_num, unit_idx 797 src/dps8/dps8_cable.c & cables->urp_to_iom[unit_idx][urp_port_num], unit_idx 799 src/dps8/dps8_cable.c & urp_unit [unit_idx], urp_iom_cmd); unit_idx 803 src/dps8/dps8_cable.c if (name_match (param, "OPC", & unit_idx)) unit_idx 805 src/dps8/dps8_cable.c if (unit_idx >= N_OPC_UNITS_MAX) unit_idx 807 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: OPC unit number out of range <%d>\n", unit_idx); unit_idx 814 src/dps8/dps8_cable.c unit_idx, opc_port_num, unit_idx 817 src/dps8/dps8_cable.c & cables->opc_to_iom[unit_idx][opc_port_num], unit_idx 819 src/dps8/dps8_cable.c & opc_unit [unit_idx], opc_iom_cmd); unit_idx 823 src/dps8/dps8_cable.c if (name_match (param, "FNP", & unit_idx)) unit_idx 825 src/dps8/dps8_cable.c if (unit_idx >= N_FNP_UNITS_MAX) unit_idx 827 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: FNP unit number out of range <%d>\n", unit_idx); unit_idx 834 src/dps8/dps8_cable.c unit_idx, fnp_port_num, unit_idx 837 src/dps8/dps8_cable.c & cables->fnp_to_iom[unit_idx][fnp_port_num], unit_idx 839 src/dps8/dps8_cable.c & fnp_unit [unit_idx], fnp_iom_cmd); unit_idx 848 src/dps8/dps8_cable.c if (name_match (param, "ABSI", & unit_idx)) unit_idx 850 src/dps8/dps8_cable.c if (unit_idx >= N_ABSI_UNITS_MAX) unit_idx 852 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: ABSI unit number out of range <%d>\n", unit_idx); unit_idx 859 src/dps8/dps8_cable.c unit_idx, absi_port_num, unit_idx 862 src/dps8/dps8_cable.c & cables->absi_to_iom[unit_idx][absi_port_num], unit_idx 864 src/dps8/dps8_cable.c & absi_unit [unit_idx], absi_iom_cmd); unit_idx 878 src/dps8/dps8_cable.c if (name_match (param, "SKC", & unit_idx)) unit_idx 880 src/dps8/dps8_cable.c if (unit_idx >= N_SKC_UNITS_MAX) unit_idx 882 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: SKC unit number out of range <%d>\n", unit_idx); unit_idx 889 src/dps8/dps8_cable.c unit_idx, skc_port_num, unit_idx 892 src/dps8/dps8_cable.c & cables->sk_to_iom[unit_idx][skc_port_num], unit_idx 894 src/dps8/dps8_cable.c & sk_unit [unit_idx], skc_iom_cmd); unit_idx 947 src/dps8/dps8_cable.c uint unit_idx, unit_idx 992 src/dps8/dps8_cable.c here->unit_idx = unit_idx; unit_idx 1185 src/dps8/dps8_cable.c uint unit_idx; unit_idx 1188 src/dps8/dps8_cable.c if (name_match (param, "RDR", & unit_idx)) unit_idx 1190 src/dps8/dps8_cable.c if (unit_idx >= N_RDR_UNITS_MAX) unit_idx 1192 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1201 src/dps8/dps8_cable.c unit_idx, unit_idx 1203 src/dps8/dps8_cable.c & cables->rdr_to_urp[unit_idx], unit_idx 1208 src/dps8/dps8_cable.c if (name_match (param, "PUN", & unit_idx)) unit_idx 1210 src/dps8/dps8_cable.c if (unit_idx >= N_PUN_UNITS_MAX) unit_idx 1212 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1221 src/dps8/dps8_cable.c unit_idx, unit_idx 1223 src/dps8/dps8_cable.c & cables->pun_to_urp[unit_idx], unit_idx 1228 src/dps8/dps8_cable.c if (name_match (param, "PRT", & unit_idx)) unit_idx 1230 src/dps8/dps8_cable.c if (unit_idx >= N_PRT_UNITS_MAX) unit_idx 1232 src/dps8/dps8_cable.c sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx); unit_idx 1241 src/dps8/dps8_cable.c unit_idx, unit_idx 1243 src/dps8/dps8_cable.c & cables->prt_to_urp[unit_idx], unit_idx 1612 src/dps8/dps8_cable.c sim_printf (" %4u %4u %4u %10p\n", u, prt, p->unit_idx, (void *) p->iom_cmd); \ unit_idx 201 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 460 src/dps8/dps8_crdrdr.c uint unitIdx = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx; unit_idx 906 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;