Lines Matching refs:t

262 	struct gf128mul_64k *t;  in gf128mul_init_64k_bbe()  local
265 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_64k_bbe()
266 if (!t) in gf128mul_init_64k_bbe()
270 t->t[i] = kzalloc(sizeof(*t->t[i]), GFP_KERNEL); in gf128mul_init_64k_bbe()
271 if (!t->t[i]) { in gf128mul_init_64k_bbe()
272 gf128mul_free_64k(t); in gf128mul_init_64k_bbe()
273 t = NULL; in gf128mul_init_64k_bbe()
278 t->t[0]->t[1] = *g; in gf128mul_init_64k_bbe()
280 gf128mul_x_bbe(&t->t[0]->t[j + j], &t->t[0]->t[j]); in gf128mul_init_64k_bbe()
285 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_bbe()
286 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_bbe()
292 t->t[i]->t[j] = t->t[i - 1]->t[j]; in gf128mul_init_64k_bbe()
293 gf128mul_x8_bbe(&t->t[i]->t[j]); in gf128mul_init_64k_bbe()
298 return t; in gf128mul_init_64k_bbe()
302 void gf128mul_free_64k(struct gf128mul_64k *t) in gf128mul_free_64k() argument
307 kfree_sensitive(t->t[i]); in gf128mul_free_64k()
308 kfree_sensitive(t); in gf128mul_free_64k()
312 void gf128mul_64k_bbe(be128 *a, const struct gf128mul_64k *t) in gf128mul_64k_bbe() argument
318 *r = t->t[0]->t[ap[15]]; in gf128mul_64k_bbe()
320 be128_xor(r, r, &t->t[i]->t[ap[15 - i]]); in gf128mul_64k_bbe()
343 struct gf128mul_4k *t; in gf128mul_init_4k_lle() local
346 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_lle()
347 if (!t) in gf128mul_init_4k_lle()
350 t->t[128] = *g; in gf128mul_init_4k_lle()
352 gf128mul_x_lle(&t->t[j], &t->t[j+j]); in gf128mul_init_4k_lle()
356 be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); in gf128mul_init_4k_lle()
359 return t; in gf128mul_init_4k_lle()
365 struct gf128mul_4k *t; in gf128mul_init_4k_bbe() local
368 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_bbe()
369 if (!t) in gf128mul_init_4k_bbe()
372 t->t[1] = *g; in gf128mul_init_4k_bbe()
374 gf128mul_x_bbe(&t->t[j + j], &t->t[j]); in gf128mul_init_4k_bbe()
378 be128_xor(&t->t[j + k], &t->t[j], &t->t[k]); in gf128mul_init_4k_bbe()
381 return t; in gf128mul_init_4k_bbe()
385 void gf128mul_4k_lle(be128 *a, const struct gf128mul_4k *t) in gf128mul_4k_lle() argument
391 *r = t->t[ap[15]]; in gf128mul_4k_lle()
394 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_lle()
400 void gf128mul_4k_bbe(be128 *a, const struct gf128mul_4k *t) in gf128mul_4k_bbe() argument
406 *r = t->t[ap[0]]; in gf128mul_4k_bbe()
409 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_bbe()