Lines Matching defs:unit
145 *atkbdc_get_softc(int unit)
149 if (unit >= nitems(atkbdc_softc))
151 sc = atkbdc_softc[unit];
153 sc = atkbdc_softc[unit]
162 atkbdc_probe_unit(int unit, struct resource *port0, struct resource *port1)
172 atkbdc_attach_unit(int unit, atkbdc_softc_t *sc, struct resource *port0,
293 atkbdc_open(int unit)
295 if (unit <= 0)
296 unit = 0;
297 if (unit >= MAXKBDC)
299 if ((atkbdc_softc[unit]->port0 != NULL)
300 || (atkbdc_softc[unit]->ioh0 != 0)) /* XXX */
301 return atkbdc_softc[unit];