Lines Matching defs:subunit
117 static char * maple_unit_name(char *, size_t, int port, int subunit);
200 int port, subunit, f;
216 for (subunit = 0; subunit < MAPLE_SUBUNITS; subunit++) {
217 u = &sc->sc_unit[port][subunit];
219 u->subunit = subunit;
292 maple_unit_name(buf, sizeof(buf), u->port, u->subunit));
305 if (u->port < last_port || u->subunit <= last_subunit)
309 last_subunit = u->subunit;
327 int port, subunit;
340 for (subunit = 0; subunit < MAPLE_SUBUNITS; subunit++)
341 sc->sc_unit[port][subunit].u_dma_stat = MAPLE_DMA_IDLE;
363 maple_unit_name(char *buf, size_t len, int port, int subunit)
368 if (subunit)
369 snprintf(buf + l, len - l, "%d", subunit);
449 to = from | subunit_code[u->subunit];
486 u->port, u->subunit), u->u_retrycnt);
525 KASSERT(u->subunit == 0);
537 maple_unit_name(buf, sizeof(buf), u->port, u->subunit),
564 u1->port, u1->subunit));
593 maple_unit_name(buf, sizeof(buf), u->port, u->subunit));
604 int port, subunit;
609 subunit = ma->ma_unit->subunit;
613 subunit), pnp);
617 if (subunit != 0)
618 printf(" subunit %d", subunit);
653 match->cf_loc[MAPLECF_SUBUNIT] != ma->ma_unit->subunit)
695 u->port, u->subunit);
725 sc->sc_port_units[u->port] |= 1 << u->subunit;
740 printf("%s: remove\n", maple_unit_name(buf, sizeof(buf), u->port, u->subunit));
744 sc->sc_port_units[port] &= ~(1 << u->subunit);
746 if (u->subunit == 0) {
755 maple_unit_name(buf, sizeof(buf), port, u->subunit),
780 maple_unit_name(buf, sizeof(buf), port, u->subunit),
798 maple_unit_name(buf, sizeof(buf), port, u->subunit));
812 if (u->subunit == 0) {
818 maple_unit_name(buf2, sizeof(buf2), port, u->subunit));
831 if (u->subunit != 0)
832 sc->sc_port_unit_map[u->port] &= ~(1 << (u->subunit - 1));
859 maple_unit_name(buf, sizeof(buf), u->port, u->subunit), func);
1145 maple_unit_name(buf, sizeof(buf), u->port, u->subunit));
1166 maple_unit_name(buf, sizeof(buf), u->port, u->subunit),
1269 maple_unit_name(buf, sizeof(buf), u->port, u->subunit),
1292 if (u->subunit != 0 &&
1296 u->port, u->subunit));
1301 maple_unit_name(buf, sizeof(buf), u->port, u->subunit));
1329 u->subunit),
1346 u->port, u->subunit));
1386 u->subunit),
1404 maple_unit_name(buf, sizeof(buf), u->port, u->subunit),
1416 * check for subunit change and schedule probing subunits
1418 if (u->subunit == 0 && response != MAPLE_RESPONSE_NONE &&
1661 if (!(sc->sc_port_units[u->port] & (1 << u->subunit)))