Lines Matching refs:handler
179 p->handler = NULL; in physical_Create()
260 if (p->handler && p->handler->speed) in physical_GetSpeed()
261 return (*p->handler->speed)(p); in physical_GetSpeed()
280 if (p->handler && p->handler->raw) in physical_Raw()
281 return (*p->handler->raw)(p); in physical_Raw()
289 if (p->handler && p->handler->offline) in physical_Offline()
290 (*p->handler->offline)(p); in physical_Offline()
333 if (p->handler && p->handler->cooked) in physical_Close()
334 (*p->handler->cooked)(p); in physical_Close()
370 if (p->handler && p->handler->destroy) in physical_Close()
371 (*p->handler->destroy)(p); in physical_Close()
372 p->handler = NULL; in physical_Close()
434 if (p->handler && p->handler->openinfo) { in physical_ShowStatus()
436 prompt_Printf(arg->prompt, "open (%s)\n", (*p->handler->openinfo)(p)); in physical_ShowStatus()
439 (*p->handler->openinfo)(p), slot); in physical_ShowStatus()
499 cd = p->handler ? &p->handler->cd : &p->cfg.cd; in physical_ShowStatus()
623 type = (long)p->handler; in iov2physical()
624 p->handler = NULL; in iov2physical()
625 for (h = 0; h < NDEVICES && p->handler == NULL; h++) in iov2physical()
626 p->handler = (*devices[h].iov2device)(type, p, iov, niov, maxiov, in iov2physical()
628 if (p->handler == NULL) { in iov2physical()
634 p->link.name, p->name.full, p->handler->name); in iov2physical()
679 if (p->handler) { in physical2iov()
680 h = p->handler; in physical2iov()
681 p->handler = (struct device *)(long)p->handler->type; in physical2iov()
763 return p->handler ? p->handler->mtu : 0; in physical_DeviceMTU()
805 if (p->handler && p->handler->read) in physical_Read()
806 ret = (*p->handler->read)(p, buf, nbytes); in physical_Read()
820 if (p->handler && p->handler->write) in physical_Write()
821 return (*p->handler->write)(p, buf, nbytes); in physical_Write()
860 if (p->handler && p->handler->removefromset) in physical_RemoveFromSet()
861 return (*p->handler->removefromset)(p, r, w, e); in physical_RemoveFromSet()
908 if (p->handler && (p->handler->type == TCP_DEVICE || in physical_Login()
909 p->handler->type == UDP_DEVICE)) { in physical_Login()
1001 for (h = 0; h < NDEVICES && p->handler == NULL && p->fd >= 0; h++) in physical_Open()
1002 p->handler = (*devices[h].create)(p); in physical_Open()
1005 if (p->handler == NULL) { in physical_Open()
1026 for (h = 0; h < NDEVICES && p->handler == NULL; h++) in physical_Open()
1027 if ((p->handler = (*devices[h].create)(p)) == NULL && wasfd != p->fd) in physical_Open()
1086 if (p->handler && p->handler->stoptimer) in physical_StopDeviceTimer()
1087 (*p->handler->stoptimer)(p); in physical_StopDeviceTimer()
1093 if (p->handler && p->handler->awaitcarrier) in physical_AwaitCarrier()
1094 return (*p->handler->awaitcarrier)(p); in physical_AwaitCarrier()
1103 if (p->handler && p->handler->setasyncparams) in physical_SetAsyncParams()
1104 return (*p->handler->setasyncparams)(p, mymap, hismap); in physical_SetAsyncParams()
1112 if (p->handler && p->handler->slot) in physical_Slot()
1113 return (*p->handler->slot)(p); in physical_Slot()