Lines Matching defs:keyno
92 g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
97 uint8_t keyno[8];
106 le64enc(hmacdata.keyno, keyno);
109 key->gek_keyno = keyno;
115 g_eli_key_allocate(struct g_eli_softc *sc, uint64_t keyno)
123 g_eli_key_fill(sc, key, keyno);
129 keysearch.gek_keyno = keyno;
161 g_eli_key_replace(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
172 g_eli_key_fill(sc, key, keyno);
234 uint64_t keyno;
236 for (keyno = 0; keyno < sc->sc_ekeys_total; keyno++)
237 (void)g_eli_key_allocate(sc, keyno);
275 uint64_t keyno;
281 keyno = (offset >> G_ELI_KEY_SHIFT) / blocksize;
283 KASSERT(keyno < sc->sc_ekeys_total,
284 ("%s: keyno=%ju >= sc_ekeys_total=%ju",
285 __func__, (uintmax_t)keyno, (uintmax_t)sc->sc_ekeys_total));
287 keysearch.gek_keyno = keyno;
292 KASSERT(key != NULL, ("No key %ju found.", (uintmax_t)keyno));
310 key = g_eli_key_allocate(sc, keyno);
315 g_eli_key_replace(sc, key, keyno);
318 key = g_eli_key_allocate(sc, keyno);