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          680 src/dps8/dps8_cable.c     uint unit_idx;
unit_idx          683 src/dps8/dps8_cable.c     if (name_match (param, "IPC", & unit_idx))
unit_idx          685 src/dps8/dps8_cable.c         if (unit_idx >= N_IPC_UNITS_MAX)
unit_idx          687 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: IPC unit number out of range <%d>\n", unit_idx);
unit_idx          704 src/dps8/dps8_cable.c                            unit_idx, (uint) ipc_port_num,
unit_idx          707 src/dps8/dps8_cable.c                            & cables->ipc_to_iom[unit_idx][ipc_port_num],
unit_idx          709 src/dps8/dps8_cable.c                            & ipc_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd?
unit_idx          713 src/dps8/dps8_cable.c     if (name_match (param, "MSP", & unit_idx))
unit_idx          715 src/dps8/dps8_cable.c         if (unit_idx >= N_MSP_UNITS_MAX)
unit_idx          717 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: MSP unit number out of range <%d>\n", unit_idx);
unit_idx          734 src/dps8/dps8_cable.c                            unit_idx, (uint) msp_port_num,
unit_idx          737 src/dps8/dps8_cable.c                            & cables->msp_to_iom[unit_idx][msp_port_num],
unit_idx          739 src/dps8/dps8_cable.c                            & msp_unit [unit_idx], dsk_iom_cmd); // XXX mtp_iom_cmd?
unit_idx          743 src/dps8/dps8_cable.c     if (name_match (param, "MTP", & unit_idx))
unit_idx          745 src/dps8/dps8_cable.c         if (unit_idx >= N_MTP_UNITS_MAX)
unit_idx          747 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: MTP unit number out of range <%d>\n", unit_idx);
unit_idx          764 src/dps8/dps8_cable.c                            unit_idx, (uint) mtp_port_num,
unit_idx          767 src/dps8/dps8_cable.c                            & cables->mtp_to_iom[unit_idx][mtp_port_num],
unit_idx          769 src/dps8/dps8_cable.c                            & mtp_unit [unit_idx], mt_iom_cmd); // XXX mtp_iom_cmd?
unit_idx          773 src/dps8/dps8_cable.c     if (name_match (param, "URP", & unit_idx))
unit_idx          775 src/dps8/dps8_cable.c         if (unit_idx >= N_URP_UNITS_MAX)
unit_idx          777 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: URP unit number out of range <%d>\n", unit_idx);
unit_idx          795 src/dps8/dps8_cable.c                            unit_idx, (uint) urp_port_num,
unit_idx          798 src/dps8/dps8_cable.c                            & cables->urp_to_iom[unit_idx][urp_port_num],
unit_idx          800 src/dps8/dps8_cable.c                            & urp_unit [unit_idx], urp_iom_cmd);
unit_idx          804 src/dps8/dps8_cable.c     if (name_match (param, "OPC", & unit_idx))
unit_idx          806 src/dps8/dps8_cable.c         if (unit_idx >= N_OPC_UNITS_MAX)
unit_idx          808 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: OPC unit number out of range <%d>\n", unit_idx);
unit_idx          815 src/dps8/dps8_cable.c                            unit_idx, opc_port_num,
unit_idx          818 src/dps8/dps8_cable.c                            & cables->opc_to_iom[unit_idx][opc_port_num],
unit_idx          820 src/dps8/dps8_cable.c                            & opc_unit [unit_idx], opc_iom_cmd);
unit_idx          824 src/dps8/dps8_cable.c     if (name_match (param, "FNP", & unit_idx))
unit_idx          826 src/dps8/dps8_cable.c         if (unit_idx >= N_FNP_UNITS_MAX)
unit_idx          828 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: FNP unit number out of range <%d>\n", unit_idx);
unit_idx          835 src/dps8/dps8_cable.c                            unit_idx, fnp_port_num,
unit_idx          838 src/dps8/dps8_cable.c                            & cables->fnp_to_iom[unit_idx][fnp_port_num],
unit_idx          840 src/dps8/dps8_cable.c                            & fnp_unit [unit_idx], fnp_iom_cmd);
unit_idx          846 src/dps8/dps8_cable.c     if (name_match (param, "ABSI", & unit_idx))
unit_idx          848 src/dps8/dps8_cable.c         if (unit_idx >= N_ABSI_UNITS_MAX)
unit_idx          850 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: ABSI unit number out of range <%d>\n", unit_idx);
unit_idx          857 src/dps8/dps8_cable.c                            unit_idx, absi_port_num,
unit_idx          860 src/dps8/dps8_cable.c                            & cables->absi_to_iom[unit_idx][absi_port_num],
unit_idx          862 src/dps8/dps8_cable.c                            & absi_unit [unit_idx], absi_iom_cmd);
unit_idx          870 src/dps8/dps8_cable.c     if (name_match (param, "MGP", & unit_idx))
unit_idx          872 src/dps8/dps8_cable.c         if (unit_idx >= N_MGP_UNITS_MAX)
unit_idx          874 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: MGP unit number out of range <%d>\n", unit_idx);
unit_idx          881 src/dps8/dps8_cable.c                            unit_idx, mgp_port_num,
unit_idx          884 src/dps8/dps8_cable.c                            & cables->mgp_to_iom[unit_idx][mgp_port_num],
unit_idx          886 src/dps8/dps8_cable.c                            & mgp_unit [unit_idx], mgp_iom_cmd);
unit_idx          894 src/dps8/dps8_cable.c     if (name_match (param, "SKC", & unit_idx))
unit_idx          896 src/dps8/dps8_cable.c         if (unit_idx >= N_SKC_UNITS_MAX)
unit_idx          898 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: SKC unit number out of range <%d>\n", unit_idx);
unit_idx          905 src/dps8/dps8_cable.c                            unit_idx, skc_port_num,
unit_idx          908 src/dps8/dps8_cable.c                            & cables->sk_to_iom[unit_idx][skc_port_num],
unit_idx          910 src/dps8/dps8_cable.c                            & sk_unit [unit_idx], skc_iom_cmd);
unit_idx          960 src/dps8/dps8_cable.c                             uint unit_idx,
unit_idx         1005 src/dps8/dps8_cable.c         here->unit_idx = unit_idx;
unit_idx         1198 src/dps8/dps8_cable.c     uint unit_idx;
unit_idx         1201 src/dps8/dps8_cable.c     if (name_match (param, "RDR", & unit_idx))
unit_idx         1203 src/dps8/dps8_cable.c         if (unit_idx >= N_RDR_UNITS_MAX)
unit_idx         1205 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx);
unit_idx         1214 src/dps8/dps8_cable.c                              unit_idx,
unit_idx         1216 src/dps8/dps8_cable.c                              & cables->rdr_to_urp[unit_idx],
unit_idx         1221 src/dps8/dps8_cable.c     if (name_match (param, "PUN", & unit_idx))
unit_idx         1223 src/dps8/dps8_cable.c         if (unit_idx >= N_PUN_UNITS_MAX)
unit_idx         1225 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx);
unit_idx         1234 src/dps8/dps8_cable.c                              unit_idx,
unit_idx         1236 src/dps8/dps8_cable.c                              & cables->pun_to_urp[unit_idx],
unit_idx         1241 src/dps8/dps8_cable.c     if (name_match (param, "PRT", & unit_idx))
unit_idx         1243 src/dps8/dps8_cable.c         if (unit_idx >= N_PRT_UNITS_MAX)
unit_idx         1245 src/dps8/dps8_cable.c             sim_printf ("error: CABLE IOM: DISK unit number out of range <%d>\n", unit_idx);
unit_idx         1254 src/dps8/dps8_cable.c                              unit_idx,
unit_idx         1256 src/dps8/dps8_cable.c                              & cables->prt_to_urp[unit_idx],
unit_idx         1623 src/dps8/dps8_cable.c             sim_printf (" %4u  %4u        %4u %10p\n", u, prt, p->unit_idx, (void *) p->iom_cmd); \
unit_idx          199 src/dps8/dps8_cable.h     uint unit_idx;
unit_idx         1150 src/dps8/dps8_crdpun.c     uint devUnitIdx     = cables->urp_to_urd[ctlr_unit_idx][dev_code].unit_idx;
unit_idx         1196 src/dps8/dps8_crdpun.c   uint devUnitIdx      = cables->urp_to_urd[ctlr_unit_idx][dev_code].unit_idx;
unit_idx          470 src/dps8/dps8_crdrdr.c   uint unitIdx        = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx          941 src/dps8/dps8_crdrdr.c   uint unitIdx              = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx          129 src/dps8/dps8_dia.c     long unit_idx = DIA_UNIT_IDX (uptr);
unit_idx          130 src/dps8/dps8_dia.c     if (unit_idx >= (long) N_DIA_UNITS_MAX)
unit_idx          133 src/dps8/dps8_dia.c                    "DIA SHOW CONFIG: Invalid unit number %ld\n", (long) unit_idx);
unit_idx          134 src/dps8/dps8_dia.c         sim_printf ("error: Invalid unit number %ld\n", (long) unit_idx);
unit_idx          138 src/dps8/dps8_dia.c     sim_printf ("DIA unit number %ld\n", (long) unit_idx);
unit_idx          139 src/dps8/dps8_dia.c     struct dia_unit_data * dudp = dia_data.dia_unit_data + unit_idx;
unit_idx         1160 src/dps8/dps8_disk.c          uint dsk_unit_idx = dev_p[dev_num].unit_idx;
unit_idx         1219 src/dps8/dps8_disk.c     devUnitIdx = cables->ipc_to_dsk[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1221 src/dps8/dps8_disk.c     devUnitIdx = cables->msp_to_dsk[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1434 src/dps8/dps8_mt.c         uint unit_idx = p->unit_idx;
unit_idx         1438 src/dps8/dps8_mt.c         if (mt_unit [unit_idx].filename)
unit_idx         1447 src/dps8/dps8_mt.c                    "%s: unit %d handler %06o\n", __func__, unit_idx, handler);
unit_idx         1506 src/dps8/dps8_mt.c   uint devUnitIdx = cables->mtp_to_tape[ctlr_unit_idx][dev_code].unit_idx;
unit_idx         1128 src/dps8/dps8_prt.c   uint devUnitIdx      = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1212 src/dps8/dps8_prt.c   uint devUnitIdx      = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1308 src/dps8/dps8_prt.c   uint devUnitIdx      = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1404 src/dps8/dps8_prt.c   uint devUnitIdx      = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx         1747 src/dps8/dps8_prt.c   uint devUnitIdx     = cables->urp_to_urd[ctlr_unit_idx][p->IDCW_DEV_CODE].unit_idx;
unit_idx          330 src/dps8/dps8_socket_dev.c static void skt_socket (uint unit_idx, word5 dev_code, word36 * buffer)
unit_idx          381 src/dps8/dps8_socket_dev.c             sk_data.fd_unit[fd] = (int) unit_idx;
unit_idx          489 src/dps8/dps8_socket_dev.c static void skt_bind (uint unit_idx, word6 dev_code, word36 * buffer)
unit_idx          530 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          554 src/dps8/dps8_socket_dev.c static void skt_listen (uint unit_idx, word6 dev_code, word36 * buffer)
unit_idx          578 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          582 src/dps8/dps8_socket_dev.c             socket_fd, sk_data.fd_unit[socket_fd], sk_data.fd_dev_code[socket_fd], unit_idx, dev_code);
unit_idx          622 src/dps8/dps8_socket_dev.c static int skt_accept (uint unit_idx, word6 dev_code, word36 * buffer)
unit_idx          637 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          643 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].accept_fd  = socket_fd;
unit_idx          644 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].unit_state = unit_accept;
unit_idx          648 src/dps8/dps8_socket_dev.c static void skt_close (uint unit_idx, word6 dev_code, word36 * buffer)
unit_idx          668 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          676 src/dps8/dps8_socket_dev.c     if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_accept &&
unit_idx          677 src/dps8/dps8_socket_dev.c         sk_data.unit_data[unit_idx][dev_code].accept_fd == socket_fd)
unit_idx          679 src/dps8/dps8_socket_dev.c         sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle;
unit_idx          680 src/dps8/dps8_socket_dev.c         sk_data.unit_data[unit_idx][dev_code].accept_fd = -1;
unit_idx          696 src/dps8/dps8_socket_dev.c static int skt_read8 (uint unit_idx, word6 dev_code, UNUSED uint tally, word36 * buffer)
unit_idx          718 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          724 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].read_fd        = socket_fd;
unit_idx          725 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].read_buffer_sz = count;
unit_idx          726 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].unit_state     = unit_read;
unit_idx          730 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          761 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          856 src/dps8/dps8_socket_dev.c     uint unit_idx = get_ctlr_idx (iom_unit_idx, chan);
unit_idx          890 src/dps8/dps8_socket_dev.c             skt_socket (unit_idx, p->IDCW_DEV_CODE, buffer);
unit_idx          915 src/dps8/dps8_socket_dev.c             skt_bind (unit_idx, p->IDCW_DEV_CODE, buffer);
unit_idx          974 src/dps8/dps8_socket_dev.c             skt_listen (unit_idx, p->IDCW_DEV_CODE, buffer);
unit_idx          999 src/dps8/dps8_socket_dev.c             sk_data.unit_data[unit_idx][p->IDCW_DEV_CODE].words_processed = words_processed;
unit_idx         1001 src/dps8/dps8_socket_dev.c             rc = skt_accept (unit_idx, p->IDCW_DEV_CODE, buffer);
unit_idx         1030 src/dps8/dps8_socket_dev.c             skt_close (unit_idx, p->IDCW_DEV_CODE, buffer);
unit_idx         1054 src/dps8/dps8_socket_dev.c             sk_data.unit_data[unit_idx][p->IDCW_DEV_CODE].words_processed = words_processed;
unit_idx         1056 src/dps8/dps8_socket_dev.c             rc = skt_read8 (unit_idx, p->IDCW_DEV_CODE, tally, buffer);
unit_idx         1084 src/dps8/dps8_socket_dev.c             rc = skt_write8 (iom_unit_idx, chan, unit_idx, p->IDCW_DEV_CODE, tally, buffer);
unit_idx         1142 src/dps8/dps8_socket_dev.c static void do_try_accept (uint unit_idx, word6 dev_code)
unit_idx         1147 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         1156 src/dps8/dps8_socket_dev.c         sk_data.fd_unit[fd] = (int) unit_idx;
unit_idx         1168 src/dps8/dps8_socket_dev.c     buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].accept_fd)) & MASK36;
unit_idx         1178 src/dps8/dps8_socket_dev.c     uint iom_unit_idx    = (uint) cables->sk_to_iom[unit_idx][0].iom_unit_idx;
unit_idx         1179 src/dps8/dps8_socket_dev.c     uint chan            = (uint) cables->sk_to_iom[unit_idx][0].chan_num;
unit_idx         1180 src/dps8/dps8_socket_dev.c     uint words_processed = sk_data.unit_data[unit_idx][dev_code].words_processed;
unit_idx         1185 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle;
unit_idx         1189 src/dps8/dps8_socket_dev.c static void do_try_read (uint unit_idx, word6 dev_code)
unit_idx         1192 src/dps8/dps8_socket_dev.c     uint count           = sk_data.unit_data[unit_idx][dev_code].read_buffer_sz;
unit_idx         1198 src/dps8/dps8_socket_dev.c     ssize_t nread = read (sk_data.unit_data[unit_idx][dev_code].read_fd, & netdata, count);
unit_idx         1208 src/dps8/dps8_socket_dev.c     buffer[0] = ((word36) ((word36s) sk_data.unit_data[unit_idx][dev_code].read_fd)) & MASK36;
unit_idx         1209 src/dps8/dps8_socket_dev.c     buffer[1] = ((word36) (sk_data.unit_data[unit_idx][dev_code].read_buffer_sz)) & MASK36;
unit_idx         1222 src/dps8/dps8_socket_dev.c     uint iom_unit_idx    = (uint) cables->sk_to_iom[unit_idx][0].iom_unit_idx;
unit_idx         1223 src/dps8/dps8_socket_dev.c     uint chan            = (uint) cables->sk_to_iom[unit_idx][0].chan_num;
unit_idx         1224 src/dps8/dps8_socket_dev.c     uint words_processed = sk_data.unit_data[unit_idx][dev_code].words_processed;
unit_idx         1227 src/dps8/dps8_socket_dev.c     sk_data.unit_data[unit_idx][dev_code].unit_state = unit_idle;
unit_idx         1234 src/dps8/dps8_socket_dev.c     for (uint unit_idx = 0; unit_idx < N_SKC_UNITS_MAX; unit_idx ++)
unit_idx         1238 src/dps8/dps8_socket_dev.c             if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_accept)
unit_idx         1240 src/dps8/dps8_socket_dev.c                 do_try_accept (unit_idx, dev_code);
unit_idx         1242 src/dps8/dps8_socket_dev.c             else if (sk_data.unit_data[unit_idx][dev_code].unit_state == unit_read)
unit_idx         1244 src/dps8/dps8_socket_dev.c                 do_try_read (unit_idx, dev_code);
unit_idx          217 src/dps8/dps8_urp.c  uint devUnitIdx  = cables->urp_to_urd[ctlrUnitIdx][p->IDCW_DEV_CODE].unit_idx;