Lines Matching refs:r

159 void gf128mul_x8_ble(le128 *r, const le128 *x)  in gf128mul_x8_ble()  argument
165 r->a = cpu_to_le64((a << 8) | (b >> 56)); in gf128mul_x8_ble()
166 r->b = cpu_to_le64((b << 8) ^ _tt); in gf128mul_x8_ble()
170 void gf128mul_lle(be128 *r, const be128 *b) in gf128mul_lle() argument
175 p[0] = *r; in gf128mul_lle()
179 memset(r, 0, sizeof(*r)); in gf128mul_lle()
184 be128_xor(r, r, &p[0]); in gf128mul_lle()
186 be128_xor(r, r, &p[1]); in gf128mul_lle()
188 be128_xor(r, r, &p[2]); in gf128mul_lle()
190 be128_xor(r, r, &p[3]); in gf128mul_lle()
192 be128_xor(r, r, &p[4]); in gf128mul_lle()
194 be128_xor(r, r, &p[5]); in gf128mul_lle()
196 be128_xor(r, r, &p[6]); in gf128mul_lle()
198 be128_xor(r, r, &p[7]); in gf128mul_lle()
203 gf128mul_x8_lle(r); in gf128mul_lle()
208 void gf128mul_bbe(be128 *r, const be128 *b) in gf128mul_bbe() argument
213 p[0] = *r; in gf128mul_bbe()
217 memset(r, 0, sizeof(*r)); in gf128mul_bbe()
222 be128_xor(r, r, &p[7]); in gf128mul_bbe()
224 be128_xor(r, r, &p[6]); in gf128mul_bbe()
226 be128_xor(r, r, &p[5]); in gf128mul_bbe()
228 be128_xor(r, r, &p[4]); in gf128mul_bbe()
230 be128_xor(r, r, &p[3]); in gf128mul_bbe()
232 be128_xor(r, r, &p[2]); in gf128mul_bbe()
234 be128_xor(r, r, &p[1]); in gf128mul_bbe()
236 be128_xor(r, r, &p[0]); in gf128mul_bbe()
241 gf128mul_x8_bbe(r); in gf128mul_bbe()
315 be128 r[1]; in gf128mul_64k_bbe() local
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()
321 *a = *r; in gf128mul_64k_bbe()
388 be128 r[1]; in gf128mul_4k_lle() local
391 *r = t->t[ap[15]]; in gf128mul_4k_lle()
393 gf128mul_x8_lle(r); in gf128mul_4k_lle()
394 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_lle()
396 *a = *r; in gf128mul_4k_lle()
403 be128 r[1]; in gf128mul_4k_bbe() local
406 *r = t->t[ap[0]]; in gf128mul_4k_bbe()
408 gf128mul_x8_bbe(r); in gf128mul_4k_bbe()
409 be128_xor(r, r, &t->t[ap[i]]); in gf128mul_4k_bbe()
411 *a = *r; in gf128mul_4k_bbe()