Lines Matching refs:t
282 struct gf128mul_64k *t; in gf128mul_init_64k_bbe() local
285 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_64k_bbe()
286 if (!t) in gf128mul_init_64k_bbe()
290 t->t[i] = kzalloc(sizeof(*t->t[i]), GFP_KERNEL); in gf128mul_init_64k_bbe()
291 if (!t->t[i]) { in gf128mul_init_64k_bbe()
292 gf128mul_free_64k(t); in gf128mul_init_64k_bbe()
293 t = NULL; in gf128mul_init_64k_bbe()
298 t->t[0]->t[1] = *g; in gf128mul_init_64k_bbe()
300 gf128mul_x_bbe(&t->t[0]->t[j + j], &t->t[0]->t[j]); in gf128mul_init_64k_bbe()
305 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_bbe()
306 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_bbe()
312 t->t[i]->t[j] = t->t[i - 1]->t[j]; in gf128mul_init_64k_bbe()
313 gf128mul_x8_bbe(&t->t[i]->t[j]); in gf128mul_init_64k_bbe()
318 return t; in gf128mul_init_64k_bbe()
322 void gf128mul_free_64k(struct gf128mul_64k *t) in gf128mul_free_64k() argument
327 kfree_sensitive(t->t[i]); in gf128mul_free_64k()
328 kfree_sensitive(t); in gf128mul_free_64k()
332 void gf128mul_64k_bbe(be128 *a, const struct gf128mul_64k *t) in gf128mul_64k_bbe() argument
338 *r = t->t[0]->t[ap[15]]; in gf128mul_64k_bbe()
340 be128_xor(r, r, &t->t[i]->t[ap[15 - i]]); in gf128mul_64k_bbe()
363 struct gf128mul_4k *t; in gf128mul_init_4k_lle() local
366 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_lle()
367 if (!t) in gf128mul_init_4k_lle()
370 t->t[128] = *g; in gf128mul_init_4k_lle()
372 gf128mul_x_lle(&t->t[j], &t->t[j+j]); in gf128mul_init_4k_lle()
376 be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); in gf128mul_init_4k_lle()
379 return t; in gf128mul_init_4k_lle()
385 struct gf128mul_4k *t; in gf128mul_init_4k_bbe() local
388 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_bbe()
389 if (!t) in gf128mul_init_4k_bbe()
392 t->t[1] = *g; in gf128mul_init_4k_bbe()
394 gf128mul_x_bbe(&t->t[j + j], &t->t[j]); in gf128mul_init_4k_bbe()
398 be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); in gf128mul_init_4k_bbe()
401 return t; in gf128mul_init_4k_bbe()
405 void gf128mul_4k_lle(be128 *a, const struct gf128mul_4k *t) in gf128mul_4k_lle() argument
411 *r = t->t[ap[15]]; in gf128mul_4k_lle()
414 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_lle()
420 void gf128mul_4k_bbe(be128 *a, const struct gf128mul_4k *t) in gf128mul_4k_bbe() argument
426 *r = t->t[ap[0]]; in gf128mul_4k_bbe()
429 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_bbe()