Lines Matching refs:handler
188 p->handler = NULL; in physical_Create()
269 if (p->handler && p->handler->speed) in physical_GetSpeed()
270 return (*p->handler->speed)(p); in physical_GetSpeed()
289 if (p->handler && p->handler->raw) in physical_Raw()
290 return (*p->handler->raw)(p); in physical_Raw()
298 if (p->handler && p->handler->offline) in physical_Offline()
299 (*p->handler->offline)(p); in physical_Offline()
342 if (p->handler && p->handler->cooked) in physical_Close()
343 (*p->handler->cooked)(p); in physical_Close()
383 if (p->handler && p->handler->destroy) in physical_Close()
384 (*p->handler->destroy)(p); in physical_Close()
385 p->handler = NULL; in physical_Close()
447 if (p->handler && p->handler->openinfo) { in physical_ShowStatus()
449 prompt_Printf(arg->prompt, "open (%s)\n", (*p->handler->openinfo)(p)); in physical_ShowStatus()
452 (*p->handler->openinfo)(p), slot); in physical_ShowStatus()
512 cd = p->handler ? &p->handler->cd : &p->cfg.cd; in physical_ShowStatus()
636 type = (long)p->handler; in iov2physical()
637 p->handler = NULL; in iov2physical()
638 for (h = 0; h < NDEVICES && p->handler == NULL; h++) in iov2physical()
639 p->handler = (*devices[h].iov2device)(type, p, iov, niov, maxiov, in iov2physical()
641 if (p->handler == NULL) { in iov2physical()
647 p->link.name, p->name.full, p->handler->name); in iov2physical()
692 if (p->handler) { in physical2iov()
693 h = p->handler; in physical2iov()
694 p->handler = (struct device *)(long)p->handler->type; in physical2iov()
776 return p->handler ? p->handler->mtu : 0; in physical_DeviceMTU()
818 if (p->handler && p->handler->read) in physical_Read()
819 ret = (*p->handler->read)(p, buf, nbytes); in physical_Read()
833 if (p->handler && p->handler->write) in physical_Write()
834 return (*p->handler->write)(p, buf, nbytes); in physical_Write()
873 if (p->handler && p->handler->removefromset) in physical_RemoveFromSet()
874 return (*p->handler->removefromset)(p, r, w, e); in physical_RemoveFromSet()
921 if (p->handler && (p->handler->type == TCP_DEVICE || in physical_Login()
922 p->handler->type == UDP_DEVICE)) { in physical_Login()
1017 for (h = 0; h < NDEVICES && p->handler == NULL && p->fd >= 0; h++) in physical_Open()
1018 p->handler = (*devices[h].create)(p); in physical_Open()
1021 if (p->handler == NULL) { in physical_Open()
1042 for (h = 0; h < NDEVICES && p->handler == NULL; h++) in physical_Open()
1043 if ((p->handler = (*devices[h].create)(p)) == NULL && wasfd != p->fd) in physical_Open()
1102 if (p->handler && p->handler->stoptimer) in physical_StopDeviceTimer()
1103 (*p->handler->stoptimer)(p); in physical_StopDeviceTimer()
1109 if (p->handler && p->handler->awaitcarrier) in physical_AwaitCarrier()
1110 return (*p->handler->awaitcarrier)(p); in physical_AwaitCarrier()
1119 if (p->handler && p->handler->setasyncparams) in physical_SetAsyncParams()
1120 return (*p->handler->setasyncparams)(p, mymap, hismap); in physical_SetAsyncParams()
1128 if (p->handler && p->handler->slot) in physical_Slot()
1129 return (*p->handler->slot)(p); in physical_Slot()