Lines Matching refs:softc
58 void *softc;
78 int usbeth_register(usbeth_disp_t *disp,void *softc)
88 unit->softc = softc;
97 void usbeth_unregister(void *softc)
103 * We had better find the softc. If we fail to find it,
110 if (unit->softc == softc) {
112 unit->softc = NULL;
132 if (unit->softc == NULL) {
136 buffer->buf_retlen = (*(unit->dispatch->read))(unit->softc,buffer->buf_ptr);
147 if (unit->softc == NULL) {
152 inpstat->inp_status = (*(unit->dispatch->inpstat))(unit->softc);
163 if (unit->softc == NULL) {
168 (*(unit->dispatch->write))(unit->softc,buffer->buf_ptr, buffer->buf_length );
180 if (unit->softc == NULL) {
186 (*(unit->dispatch->getaddr))(unit->softc,buffer->buf_ptr );