Lines Matching refs:dp
75 register struct device *dp, *mp, *np;
104 for (dp = dtab; dp != 0; dp = dp->d_next) {
105 mp = dp->d_conn;
110 dp->d_name);
114 for (dp = dtab; dp != 0; dp = dp->d_next) {
115 mp = dp->d_conn;
116 if (dp->d_unit == QUES || mp == 0 ||
119 if (dp->d_addr) {
121 dp->d_name, dp->d_unit);
124 if (dp->d_vec != 0) {
126 dp->d_name, dp->d_unit);
129 if (dp->d_drive == UNKNOWN) {
131 dp->d_name, dp->d_unit);
134 if (dp->d_slave != UNKNOWN) {
136 dp->d_name, dp->d_unit);
140 dp->d_name, dp->d_unit, qu(mp->d_unit));
142 qu(dp->d_drive), dp->d_dk);
151 for (dp = dtab; dp != 0; dp = dp->d_next) {
156 if ((mp = dp->d_conn) == 0 || mp == TO_NEXUS)
165 dp->d_unit, qu(dp->d_slave));
172 for (dp = dtab; dp != 0; dp = dp->d_next) {
173 if (dp->d_vec != 0) {
175 mp = dp->d_conn;
181 dp->d_name);
183 ip = dp->d_vec;
185 fprintf(fp, "X%s%d()", ip->id, dp->d_unit);
192 fprintf(fp, "int\t (*%sint%d[])() = { ", dp->d_name,
193 dp->d_unit);
194 ip = dp->d_vec;
196 fprintf(fp, "X%s%d", ip->id, dp->d_unit);
207 for (dp = dtab; dp != 0; dp = dp->d_next) {
208 mp = dp->d_conn;
209 if (dp->d_type != CONTROLLER || mp == TO_NEXUS || mp == 0 ||
212 if (dp->d_vec == 0) {
214 dp->d_name, dp->d_unit);
217 if (dp->d_addr == 0) {
219 dp->d_name, dp->d_unit);
222 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
225 dp->d_name, dp->d_unit);
228 if (dp->d_flags) {
230 dp->d_name, dp->d_unit);
236 dp->d_name, dp->d_unit, qu(mp->d_unit),
237 dp->d_name, dp->d_unit, dp->d_addr);
244 for (dp = dtab; dp != 0; dp = dp->d_next) {
245 mp = dp->d_conn;
246 if (dp->d_unit == QUES || dp->d_type != DEVICE || mp == 0 ||
255 if (dp->d_vec == 0) {
257 dp->d_name, dp->d_unit);
260 if (dp->d_addr == 0) {
262 dp->d_name, dp->d_unit);
265 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
269 dp->d_name, dp->d_unit);
279 dp->d_name, dp->d_unit);
283 if (dp->d_drive == UNKNOWN) {
285 printf("for %s%d\n", dp->d_name, dp->d_unit);
290 if (dp->d_slave != UNKNOWN) {
293 dp->d_name, dp->d_unit);
296 if (dp->d_vec != 0) {
299 dp->d_name, dp->d_unit);
302 if (dp->d_addr != 0) {
305 dp->d_name, dp->d_unit);
308 slave = dp->d_drive;
311 eq(mp->d_name, "uba") ? dp->d_name : mp->d_name, dp->d_unit,
314 qu(uba_n), slave, intv(dp), dp->d_addr, dp->d_dk,
315 dp->d_flags);
345 register struct device *dp, *mp;
374 for (dp = dtab; dp != 0; dp = dp->d_next) {
375 mp = dp->d_conn;
379 dp->d_name);
380 if (dp->d_vec != 0) {
381 if (dp->d_pri == 0)
384 dp->d_name, dp->d_unit);
386 for (vp = dp->d_vec;;) {
391 vp->id, dp->d_unit);
399 for (vp = dp->d_vec; vp; vp = vp->id_next) {
401 vp->id, dp->d_unit, dp->d_unit);
404 fprintf(fp, "struct vec %s[] = { ", intv(dp));
405 for (vp = dp->d_vec; vp != 0; vp = vp->id_next) {
409 vp->id, dp->d_unit);
412 vp->id, dp->d_unit, vp->id_vec,
413 vp->id, dp->d_unit);
426 for (dp = dtab; dp != 0; dp = dp->d_next) {
427 mp = dp->d_conn;
428 if (dp->d_type != CONTROLLER || mp == TO_NEXUS || mp == 0 ||
431 if (dp->d_addr == UNKNOWN) {
433 dp->d_name, dp->d_unit);
436 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
439 dp->d_name, dp->d_unit);
442 if (dp->d_flags) {
444 dp->d_name, dp->d_unit);
451 dp->d_name, dp->d_unit, dp->d_addr,
452 (dp->d_bus==SP_OBIO) ? (dp->d_pri << 1) : (dp->d_pri<<1)-1,
453 intv(dp), ((dp->d_mach << 16) | dp->d_bus));
457 dp->d_name, dp->d_unit, dp->d_addr,
458 dp->d_pri, intv(dp), ((dp->d_mach << 16) | dp->d_bus));
468 for (dp = dtab; dp != 0; dp = dp->d_next) {
469 mp = dp->d_conn;
470 if (dp->d_unit == QUES || dp->d_type != DEVICE || mp == 0 ||
474 if (dp->d_addr == UNKNOWN) {
476 dp->d_name, dp->d_unit);
479 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
482 dp->d_name, dp->d_unit);
491 dp->d_name, dp->d_unit);
494 if (dp->d_drive == UNKNOWN) {
496 dp->d_name, dp->d_unit);
501 if (dp->d_slave != UNKNOWN) {
504 dp->d_name, dp->d_unit);
507 if (dp->d_pri != 0) {
510 dp->d_name, dp->d_unit);
513 if (dp->d_addr != UNKNOWN) {
516 dp->d_name, dp->d_unit);
519 slave = dp->d_drive;
524 mp->d_conn == TO_NEXUS? dp->d_name : mp->d_name, dp->d_unit,
527 dp->d_addr == UNKNOWN? 0 : dp->d_addr,
528 dp->d_pri * 2, dp->d_dk, dp->d_flags, intv(dp),
529 ((dp->d_mach << 16) | dp->d_bus));
533 mp->d_conn == TO_NEXUS? dp->d_name : mp->d_name, dp->d_unit,
536 dp->d_addr == UNKNOWN? 0 : dp->d_addr,
537 dp->d_pri, dp->d_dk, dp->d_flags, intv(dp),
538 ((dp->d_mach << 16) | dp->d_bus));
549 register struct device *dp;
552 for (dp = dtab; dp != 0; dp = dp->d_next) {
553 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
555 fprintf(fp, "extern int %s(int);\n", dp->d_init);
562 for (dp = dtab; dp != 0; dp = dp->d_next) {
563 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
565 count = dp->d_slave;
568 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
579 register struct device *dp, *mp;
608 for (dp = dtab; dp != 0; dp = dp->d_next) {
609 if (dp->d_pri != 0) {
610 mp = dp->d_conn;
615 dp->d_name);
623 for (dp = dtab; dp != 0; dp = dp->d_next) {
624 mp = dp->d_conn;
625 if (dp->d_type != CONTROLLER)
629 if (dp->d_unit == QUES && eq(dp->d_name,"hdc"))
631 if (dp->d_unit == QUES && eq(dp->d_name,"fdc"))
633 if (dp->d_pri == 0) {
635 dp->d_name, dp->d_unit);
638 if (dp->d_addr == 0) {
640 dp->d_name, dp->d_unit);
643 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
646 dp->d_name, dp->d_unit);
649 if (dp->d_flags) {
651 dp->d_name, dp->d_unit);
656 dp->d_name, dp->d_unit, dp->d_addr, dp->d_pri);
665 for (dp = dtab; dp != 0; dp = dp->d_next) {
666 mp = dp->d_conn;
667 if (dp->d_unit == QUES || dp->d_type != DEVICE || mp == 0 ||
672 if (dp->d_pri == 0) {
674 dp->d_name, dp->d_unit);
677 if (dp->d_addr == 0) {
679 dp->d_name, dp->d_unit);
682 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
685 dp->d_name, dp->d_unit);
694 dp->d_name, dp->d_unit);
697 if (dp->d_drive == UNKNOWN) {
699 dp->d_name, dp->d_unit);
704 if (dp->d_slave != UNKNOWN) {
707 dp->d_name, dp->d_unit);
710 if (dp->d_pri != 0) {
713 dp->d_name, dp->d_unit);
716 if (dp->d_addr != 0) {
719 dp->d_name, dp->d_unit);
722 slave = dp->d_drive;
726 eq(mp->d_name, "iocc") ? dp->d_name : mp->d_name, dp->d_unit,
728 slave, dp->d_addr, dp->d_pri, dp->d_dk, dp->d_flags);
740 register struct device *dp, *dp1, *mp;
773 for (dp = dp1; dp != 0; dp = dp->d_next) {
774 if (!strcmp(dp->d_name, dp1->d_name)) {
775 mp = dp->d_conn;
778 dp->d_name, dp->d_unit);
781 if (dp->d_vec != 0) {
783 dp->d_name, dp->d_unit);
785 if (dp->d_pri != 0) {
787 dp->d_name, dp->d_unit);
789 if ((dp->d_drive != UNKNOWN) ||
790 (dp->d_slave !=UNKNOWN)) {
792 dp->d_name, dp->d_unit);
797 if(dp->d_unit != unit) {
799 dp->d_name,dp->d_unit,dp->d_name,unit);
800 dp->d_unit = unit;
803 fprintf(fp,"\t{ %d, 0, 0},\n",dp->d_addr);
804 dp->d_pri = -1000; /* done this one */
818 for (dp = dp1; dp != 0; dp = dp->d_next) {
819 if (!strcmp(dp->d_name, dp1->d_name)) {
820 mp = dp->d_conn;
824 dp->d_name, dp->d_unit);
827 if (dp->d_vec != 0) {
829 dp->d_name, dp->d_unit);
831 if (dp->d_pri != 0) {
833 dp->d_name, dp->d_unit);
835 if ((dp->d_drive != UNKNOWN) ||
836 (dp->d_slave !=UNKNOWN)) {
838 dp->d_name, dp->d_unit);
843 if(dp->d_unit != unit) {
845 dp->d_name,dp->d_unit,dp->d_name,unit);
846 dp->d_unit = unit;
849 if((dp->d_addr == 0) || (dp->d_addr == QUES)){
851 dp->d_name,dp->d_unit);
855 dp->d_addr);
856 dp->d_pri = -1000; /* don't do this again */
988 dev_param(struct device *dp, const char *str, long num)
993 ptp = find_proto(dp->d_conn->d_name);
995 fprintf(stderr,"dev %s cont %s", dp->d_name, dp->d_conn->d_name);
1010 dp->d_fields[entry-ptp->p_fields] = num;
1021 register struct device *dp, *mp;
1063 for (dp = dtab, namep = NULL; dp != 0; dp = dp->d_next) {
1064 mp = dp->d_conn;
1067 (namep != NULL && eq(dp->d_name, namep)) )
1070 ptp->p_name, namep = dp->d_name);
1075 for (dp = dtab, namep = NULL; dp != 0; dp = dp->d_next) {
1076 mp = dp->d_conn;
1080 if (namep == NULL || !eq(namep, dp->d_name)) {
1088 namep = dp->d_name);
1095 if (dp->d_bin != UNKNOWN)
1096 bin_table[dp->d_bin]++;
1103 dp->d_fields[entry-ptp->p_fields]);
1105 fprintf(fp, "\t},\t/* %s%d */\n", dp->d_name, count++);
1120 for (dp = dtab, namep = NULL; dp != 0; dp = dp->d_next) {
1121 mp = dp->d_conn;
1125 if (namep == NULL || !eq(namep, dp->d_name)) {
1131 namep = dp->d_name;
1152 for (dp = dtab; dp != 0; dp = dp->d_next) {
1153 if (dp->d_type == PSEUDO_DEVICE) {
1154 fprintf(fp, "extern\tint\t%sboot();\n", dp->d_name);
1158 for (dp = dtab; dp != 0; dp = dp->d_next) {
1159 if (dp->d_type == PSEUDO_DEVICE) {
1161 dp->d_name,
1162 dp->d_slave == UNKNOWN ? 32 : dp->d_slave,
1163 dp->d_name);
1241 register struct device *dp, *mp, *np;
1286 for (dp = dtab; dp != 0; dp = dp->d_next) {
1287 if (dp->d_vec != 0) {
1289 mp = dp->d_conn;
1292 if (is_declared(dp->d_name))
1294 declare(dp->d_name);
1296 dp->d_name);
1298 ip = dp->d_vec;
1307 fprintf(fp, "int (*_%sint%d[])() = { ", dp->d_name,
1308 dp->d_unit);
1309 ip = dp->d_vec;
1323 for (dp = dtab; dp != 0; dp = dp->d_next) {
1324 mp = dp->d_conn;
1325 if (dp->d_type != CONTROLLER || mp == TO_NEXUS || mp == 0 ||
1328 if (dp->d_vec == 0) {
1330 dp->d_name, dp->d_unit);
1333 if (dp->d_addr == 0) {
1335 dp->d_name, dp->d_unit);
1338 if (dp->d_addrmod == 0) {
1340 dp->d_name, dp->d_unit);
1343 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
1346 dp->d_name, dp->d_unit);
1349 if (dp->d_flags) {
1351 dp->d_name, dp->d_unit);
1357 concat3(buf1, "&", dp->d_name, "driver"),
1358 dp->d_unit,
1359 concat3(buf2, "_", dp->d_name, "int"),
1360 dp->d_addr,
1361 dp->d_addrmod);
1371 for (dp = dtab; dp != 0; dp = dp->d_next) {
1372 mp = dp->d_conn;
1373 if (dp->d_unit == QUES || dp->d_type != DEVICE || mp == 0 ||
1383 if (dp->d_vec == 0) {
1385 dp->d_name, dp->d_unit);
1388 if (dp->d_addr == 0) {
1390 dp->d_name, dp->d_unit);
1393 if (dp->d_addrmod == 0) {
1396 dp->d_name, dp->d_unit);
1399 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
1403 dp->d_name, dp->d_unit);
1412 dp->d_name, dp->d_unit);
1415 if (dp->d_drive == UNKNOWN) {
1417 printf("for %s%d\n", dp->d_name, dp->d_unit);
1420 if (dp->d_slave != UNKNOWN) {
1423 dp->d_name, dp->d_unit);
1426 if (dp->d_vec != 0) {
1429 dp->d_name, dp->d_unit);
1432 if (dp->d_addr != 0) {
1435 dp->d_name, dp->d_unit);
1438 if (dp->d_addrmod != 0) {
1441 dp->d_name, dp->d_unit);
1444 slave = dp->d_drive;
1449 eq(mp->d_name, "vme") ? dp->d_name : mp->d_name,
1451 dp->d_unit,
1454 intv2(dp),
1455 dp->d_addr,
1456 dp->d_addrmod,
1457 dp->d_dk,
1458 dp->d_flags);
1525 register struct device *dp, *mp;
1543 for (dp = dtab; dp != 0; dp = dp->d_next) {
1544 mp = dp->d_conn;
1548 dp->d_name);
1557 for (dp = dtab; dp != 0; dp = dp->d_next) {
1558 mp = dp->d_conn;
1559 if (dp->d_type != CONTROLLER || mp == TO_NEXUS || mp == 0 ||
1560 mp->d_conn != TO_NEXUS || dp->d_unit == QUES)
1562 if (dp->d_addr == UNKNOWN) {
1564 dp->d_name, dp->d_unit);
1567 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
1570 dp->d_name, dp->d_unit);
1573 if (dp->d_flags) {
1575 dp->d_name, dp->d_unit);
1581 m68k_dn(dp->d_name), dp->d_unit, dp->d_pri, dp->d_addr);
1591 for (dp = dtab; dp != 0; dp = dp->d_next) {
1592 mp = dp->d_conn;
1593 if (dp->d_unit == QUES || dp->d_type != DEVICE || mp == 0 ||
1597 if (dp->d_addr == UNKNOWN) {
1599 dp->d_name, dp->d_unit);
1602 if (dp->d_drive != UNKNOWN || dp->d_slave != UNKNOWN) {
1605 dp->d_name, dp->d_unit);
1614 dp->d_name, dp->d_unit);
1617 if (dp->d_drive == UNKNOWN) {
1619 dp->d_name, dp->d_unit);
1624 if (dp->d_slave != UNKNOWN) {
1627 dp->d_name, dp->d_unit);
1630 if (dp->d_pri != 0) {
1633 dp->d_name, dp->d_unit);
1636 if (dp->d_addr != 0) {
1639 dp->d_name, dp->d_unit);
1642 slave = dp->d_drive;
1646 m68k_dn(mp->d_conn == TO_NEXUS? dp->d_name : mp->d_name),
1647 dp->d_unit,
1650 dp->d_pri, -dp->d_dk, dp->d_flags,
1651 dp->d_addr == UNKNOWN? 0 : dp->d_addr,
1652 dp->d_name);
1662 register struct device *dp;
1666 for (dp = dtab; dp != 0; dp = dp->d_next) {
1667 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1669 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1672 for (dp = dtab; dp != 0; dp = dp->d_next) {
1673 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1675 count = dp->d_slave;
1678 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1686 register struct device *dp;
1690 for (dp = dtab; dp != 0; dp = dp->d_next) {
1691 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1693 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1696 for (dp = dtab; dp != 0; dp = dp->d_next) {
1697 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1699 count = dp->d_slave;
1702 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1738 register struct device *dp;
1742 for (dp = dtab; dp != 0; dp = dp->d_next) {
1743 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1745 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1748 for (dp = dtab; dp != 0; dp = dp->d_next) {
1749 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1751 count = dp->d_slave;
1754 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1829 register struct device *dp;
1833 for (dp = dtab; dp != 0; dp = dp->d_next) {
1834 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1836 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1839 for (dp = dtab; dp != 0; dp = dp->d_next) {
1840 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1842 count = dp->d_slave;
1845 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1884 register struct device *dp;
1888 for (dp = dtab; dp != 0; dp = dp->d_next) {
1889 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1891 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1894 for (dp = dtab; dp != 0; dp = dp->d_next) {
1895 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1897 count = dp->d_slave;
1900 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1938 register struct device *dp;
1942 for (dp = dtab; dp != 0; dp = dp->d_next) {
1943 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1945 fprintf(fp, "extern int %s(int);\n", dp->d_init);
1948 for (dp = dtab; dp != 0; dp = dp->d_next) {
1949 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1951 count = dp->d_slave;
1954 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
1992 register struct device *dp;
1996 for (dp = dtab; dp != 0; dp = dp->d_next) {
1997 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
1999 fprintf(fp, "extern int %s(int);\n", dp->d_init);
2002 for (dp = dtab; dp != 0; dp = dp->d_next) {
2003 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
2005 count = dp->d_slave;
2008 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);
2038 register struct device *dp;
2042 for (dp = dtab; dp != 0; dp = dp->d_next) {
2043 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
2045 fprintf(fp, "extern int %s(int);\n", dp->d_init);
2048 for (dp = dtab; dp != 0; dp = dp->d_next) {
2049 if (dp->d_type != PSEUDO_DEVICE || dp->d_init == 0)
2051 count = dp->d_slave;
2054 fprintf(fp, "\t{%d,\t%s},\n", count, dp->d_init);