Home | History | Annotate | Download | only in i2o

Lines Matching defs:iop

120 	struct iop_softc *iop = device_private(parent);
144 iop_initiator_register(iop, &sc->sc_ii);
151 iop_initiator_register(iop, &sc->sc_eventii);
153 rv = iop_util_eventreg(iop, &sc->sc_eventii,
165 * Start out with one queued command. The `iop' driver will adjust
178 iop_print_ident(iop, ia->ia_tid);
184 rv = iop_util_claim(iop, &sc->sc_ii, 0,
191 rv = iop_field_get_all(iop, ia->ia_tid, I2O_PARAM_RBS_DEVICE_INFO,
238 rv = iop_field_get_all(iop, ia->ia_tid, I2O_PARAM_RBS_CACHE_CONTROL,
256 iop_field_set(iop, ia->ia_tid, I2O_PARAM_RBS_OPERATION,
259 iop_field_set(iop, ia->ia_tid, I2O_PARAM_RBS_OPERATION,
262 iop_field_set(iop, ia->ia_tid, I2O_PARAM_RBS_OPERATION,
281 struct iop_softc *iop;
283 iop = device_private(device_parent(sc->sc_ld.sc_dv));
286 iop_util_claim(iop, &sc->sc_ii, 1,
295 mutex_spin_enter(&iop->sc_intrlock);
297 mutex_spin_exit(&iop->sc_intrlock);
299 iop_util_eventreg(iop, &sc->sc_eventii,
302 mutex_spin_enter(&iop->sc_intrlock);
305 &iop->sc_intrlock, hz * 5);
306 mutex_spin_exit(&iop->sc_intrlock);
309 iop_initiator_unregister(iop, &sc->sc_eventii);
310 iop_initiator_unregister(iop, &sc->sc_ii);
317 struct iop_softc *iop;
321 iop = device_private(device_parent(self));
327 * Abort any requests queued with the IOP, but allow requests that
331 iop_util_abort(iop, &sc->sc_ii, 0, 0,
347 struct iop_softc *iop;
355 iop = device_private(device_parent(ld->sc_dv));
357 im = iop_msg_alloc(iop, 0);
393 rv = iop_msg_map_bio(iop, im, mb, bp->b_data, bp->b_bcount, write);
395 if ((rv = iop_post(iop, mb)) != 0) {
396 iop_msg_unmap(iop, im);
397 iop_msg_free(iop, im);
407 struct iop_softc *iop;
415 iop = device_private(device_parent(ld->sc_dv));
418 im = iop_msg_alloc(iop, IM_POLL);
430 if ((rv = iop_msg_map(iop, im, mb, data, bcount, 1, NULL)) != 0) {
431 iop_msg_free(iop, im);
435 rv = iop_msg_post(iop, im, mb, LD_IOP_TIMEOUT * 2);
436 iop_msg_unmap(iop, im);
437 iop_msg_free(iop, im);
445 struct iop_softc *iop;
451 iop = device_private(device_parent(ld->sc_dv));
452 im = iop_msg_alloc(iop, poll ? IM_POLL : IM_WAIT);
461 rv = iop_msg_post(iop, im, &mf, LD_IOP_TIMEOUT * 2);
462 iop_msg_free(iop, im);
490 struct iop_softc *iop;
497 iop = device_private(device_parent(dv));
517 iop_msg_unmap(iop, im);
518 iop_msg_free(iop, im);
527 struct iop_softc *iop;
539 iop = device_private(device_parent(dv));
540 mutex_spin_enter(&iop->sc_intrlock);
543 mutex_spin_exit(&iop->sc_intrlock);
554 struct iop_softc *iop = device_private(device_parent(dv));
561 if (le16toh(I2O_ORG_AMI) == iop->sc_status.orgid && mpi > 64)