Lines Matching defs:iop
1 /* $NetBSD: iop.c,v 1.93 2023/09/07 20:07:03 ad Exp $ */
37 __KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.93 2023/09/07 20:07:03 ad Exp $");
39 #include "iop.h"
472 struct iop_softc *sc, *iop;
495 if ((iop = device_lookup_private(&iop_cd, i)) == NULL)
497 if ((iop->sc_flags & IOP_HAVESTATUS) == 0)
499 if (iop_status_get(iop, 1) != 0) {
501 iop->sc_flags &= ~IOP_HAVESTATUS;
519 if ((iop = device_lookup_private(&iop_cd, i)) == NULL)
521 if ((iop->sc_flags & IOP_HAVESTATUS) == 0)
524 ste->orgid = iop->sc_status.orgid;
525 ste->iopid = device_unit(iop->sc_dev) + 2;
527 htole32(le32toh(iop->sc_status.segnumber) & ~4095);
528 ste->iopcaps = iop->sc_status.iopcaps;
530 iop->sc_status.inboundmframesize;
532 htole32(iop->sc_memaddr + IOP_REG_IFIFO);
881 printf("shutting down iop devices...");