Lines Matching defs:lct
608 * Reconfiguration thread; listens for LCT change notification, and
615 struct i2o_lct lct;
626 rv = iop_lct_get0(sc, &lct, sizeof(lct), chgind);
629 device_xname(sc->sc_dev), le32toh(lct.changeindicator), rv));
633 iop_reconfigure(sc, le32toh(lct.changeindicator));
656 * If the reconfiguration request isn't the result of LCT change
663 DPRINTF(("iop_reconfigure: unable to read LCT\n"));
692 DPRINTF(("%s: LCT unchanged (async)\n", device_xname(sc->sc_dev)));
696 /* Re-read the LCT and determine if it has changed. */
698 DPRINTF(("iop_reconfigure: unable to re-read LCT\n"));
701 DPRINTF(("%s: %d LCT entries\n", device_xname(sc->sc_dev), sc->sc_nlctent));
705 DPRINTF(("%s: LCT unchanged\n", device_xname(sc->sc_dev)));
708 DPRINTF(("%s: LCT changed\n", device_xname(sc->sc_dev)));
721 * first so that any claims will propagate throughout the LCT,
724 * Re-reading the LCT at this point is a little dangerous, but we'll
730 DPRINTF(("iop_reconfigure: unable to re-read LCT\n"));
1126 iop_lct_get0(struct iop_softc *sc, struct i2o_lct *lct, int size,
1135 memset(lct, 0, size);
1146 printf("iop_lct_get0: reading LCT");
1152 iop_msg_map(sc, im, mb, lct, size, 0, NULL);
1166 struct i2o_lct *lct;
1169 lct = malloc(esize, M_DEVBUF, M_WAITOK);
1170 if ((rv = iop_lct_get0(sc, lct, esize, 0)) != 0) {
1171 free(lct, M_DEVBUF);
1175 size = le16toh(lct->tablesize) << 2;
1177 free(lct, M_DEVBUF);
1178 lct = malloc(size, M_DEVBUF, M_WAITOK);
1179 if ((rv = iop_lct_get0(sc, lct, size, 0)) != 0) {
1180 free(lct, M_DEVBUF);
1185 /* Swap in the new LCT. */
1188 sc->sc_lct = lct;