Lines Matching defs:aen
254 { 0xff, "a aen queue full" },
425 /* Save the first CCB for AEN retrieval. */
676 uint16_t aen;
700 * Pull AENs out of the controller; look for a soft reset AEN.
708 * that there is no way a pending asynchronous AEN fetch would
713 rv = twe_aen_get(sc, &aen);
717 if (TWE_AEN_CODE(aen) == TWE_AEN_QUEUE_EMPTY)
719 if (TWE_AEN_CODE(aen) == TWE_AEN_SOFT_RESET)
721 twe_aen_enqueue(sc, aen, 1);
801 "unable to retrieve AEN (%d)\n", rv);
830 * Fetch an AEN. Even though this is really like parameter
832 * AEN retrieval command from interrupt context, and thus
836 * XXX encounter. Consider pre-allocating all AEN-related
850 * If we're already retrieving an AEN, just wait; another
856 * to fetch an AEN synchronously when an AEN fetch is
913 * Handle an AEN returned by the controller.
921 uint16_t aen;
931 aprint_error_dev(sc->sc_dev, "error retrieving AEN\n");
932 aen = TWE_AEN_QUEUE_EMPTY;
934 aen = le16toh(*(u_int16_t *)tp->tp_data);
938 if (TWE_AEN_CODE(aen) == TWE_AEN_QUEUE_EMPTY) {
943 twe_aen_enqueue(sc, aen, 0);
952 "unable to retrieve AEN (%d)\n", rv);
956 twe_aen_enqueue(struct twe_softc *sc, uint16_t aen, int quiet)
962 * First report the AEN on the console. Maybe.
965 str = twe_describe_code(twe_table_aen, TWE_AEN_CODE(aen));
968 "unknown AEN 0x%04x\n", aen);
992 TWE_AEN_UNIT(aen), msg);
1006 TWE_AEN_UNIT(aen), msg);
1017 /* Now enqueue the AEN for management tools. */
1028 aen = TWE_AEN_QUEUE_FULL;
1031 sc->sc_aen_queue[sc->sc_aen_head] = aen;
1047 uint16_t aen;
1050 aen = TWE_AEN_QUEUE_EMPTY;
1052 aen = sc->sc_aen_queue[sc->sc_aen_tail];
1056 return (aen);
1424 panic("twe_ccb_alloc: got reserved CCB for non-AEN");