Lines Matching refs:keyno
77 g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
82 uint8_t keyno[8];
91 le64enc(hmacdata.keyno, keyno);
94 key->gek_keyno = keyno;
104 g_eli_key_allocate(struct g_eli_softc *sc, uint64_t keyno)
112 g_eli_key_fill(sc, key, keyno);
118 keysearch.gek_keyno = keyno;
149 g_eli_key_replace(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno)
160 g_eli_key_fill(sc, key, keyno);
221 uint64_t keyno;
223 for (keyno = 0; keyno < sc->sc_ekeys_total; keyno++)
224 (void)g_eli_key_allocate(sc, keyno);
282 uint64_t keyno;
284 for (keyno = sc->sc_ekeys_total; keyno < new_ekeys_total;
285 keyno++) {
286 (void)g_eli_key_allocate(sc, keyno);
308 uint64_t keyno;
314 keyno = (offset >> G_ELI_KEY_SHIFT) / blocksize;
316 KASSERT(keyno < sc->sc_ekeys_total,
317 ("%s: keyno=%ju >= sc_ekeys_total=%ju",
318 __func__, (uintmax_t)keyno, (uintmax_t)sc->sc_ekeys_total));
320 keysearch.gek_keyno = keyno;
325 KASSERT(key != NULL, ("No key %ju found.", (uintmax_t)keyno));
343 key = g_eli_key_allocate(sc, keyno);
348 g_eli_key_replace(sc, key, keyno);
351 key = g_eli_key_allocate(sc, keyno);