Lines Matching defs:iop
86 struct iop_softc *iop;
94 iop = device_private(parent);
99 if (iop_field_get_all(iop, ia->ia_tid, I2O_PARAM_HBA_CTLR_INFO, ¶m,
115 struct iop_softc *iop;
130 iop = device_private(parent);
139 iop_initiator_register(iop, &sc->sc_ii);
141 rv = iop_field_get_all(iop, ia->ia_tid, I2O_PARAM_HBA_CTLR_INFO,
153 iop_print_ident(iop, ia->ia_tid);
156 rv = iop_field_get_all(iop, ia->ia_tid, I2O_PARAM_HBA_SCSI_CTLR_INFO,
206 iop_initiator_unregister(iop, &sc->sc_ii);
217 struct iop_softc *iop;
232 iop = device_private(device_parent(sc->sc_dev));
235 KASSERT(mutex_owned(&iop->sc_conflock));
238 if (iop->sc_chgind == sc->sc_chgind)
257 nent = iop->sc_nlctent;
258 for (le = iop->sc_lct->entry; nent != 0; nent--, le++)
266 nent = iop->sc_nlctent;
267 for (i = 0, le = iop->sc_lct->entry; i < nent; i++, le++) {
274 rv = iop_field_get_all(iop, tid, I2O_PARAM_SCSI_DEVICE_INFO,
333 mutex_spin_enter(&iop->sc_intrlock);
336 mutex_spin_exit(&iop->sc_intrlock);
340 sc->sc_chgind = iop->sc_chgind;
350 struct iop_softc *iop;
355 iop = device_private(device_parent(sc->sc_dev));
357 mutex_enter(&iop->sc_conflock);
358 im = iop_msg_alloc(iop, IM_WAIT);
365 rv = iop_msg_post(iop, im, &mf, 5*60*1000);
366 iop_msg_free(iop, im);
371 if ((rv = iop_lct_get(iop)) == 0)
374 mutex_exit(&iop->sc_conflock);
389 struct iop_softc *iop;
395 iop = device_private(device_parent(sc->sc_dev));
415 if (iop_simple_cmd(iop, tid, I2O_SCSI_DEVICE_RESET,
431 im = iop_msg_alloc(iop, IM_POLL_INTR |
460 error = iop_msg_map_bio(iop, im, mb, xs->data,
464 iop_msg_free(iop, im);
474 if (iop_msg_post(iop, im, mb, xs->timeout)) {
476 iop_msg_unmap(iop, im);
477 iop_msg_free(iop, im);
507 struct iop_softc *iop;
510 iop = device_private(device_parent(sc->sc_dev));
511 im = iop_msg_alloc(iop, IM_POLL);
519 rv = iop_msg_post(iop, im, &mf, 30000);
520 iop_msg_free(iop, im);
527 * We have a message which has been processed and replied to by the IOP -
536 struct iop_softc *iop;
541 iop = device_private(device_parent(dv));
598 iop_msg_unmap(iop, im);
599 iop_msg_free(iop, im);
642 struct iop_softc *iop;
645 iop = device_private(device_parent(dv));
647 mutex_spin_enter(&iop->sc_intrlock);
650 mutex_spin_exit(&iop->sc_intrlock);