Lines Matching refs:subunit
177 int subunit; in ucom_attach() local
214 for (subunit = 0; subunit < ssc->sc_subunits; subunit++) { in ucom_attach()
215 sc[subunit].sc_subunit = subunit; in ucom_attach()
216 sc[subunit].sc_super = ssc; in ucom_attach()
217 sc[subunit].sc_mtx = umtx; in ucom_attach()
218 sc[subunit].sc_parent = parent; in ucom_attach()
219 sc[subunit].sc_callback = callback; in ucom_attach()
221 error = ucom_attach_tty(ssc, &sc[subunit]); in ucom_attach()
230 sc[subunit].sc_flag = UCOM_FLAG_ATTACHED; in ucom_attach()
247 int subunit; in ucom_detach() local
253 for (subunit = 0; subunit < ssc->sc_subunits; subunit++) { in ucom_detach()
254 if (sc[subunit].sc_flag & UCOM_FLAG_ATTACHED) { in ucom_detach()
255 ucom_detach_tty(ssc, &sc[subunit]); in ucom_detach()
258 sc[subunit].sc_flag &= ~UCOM_FLAG_ATTACHED; in ucom_detach()