Lines Matching refs:gf_tables
170 const struct atmel_pmecc_gf_tables *gf_tables; member
193 struct atmel_pmecc_gf_tables *gf_tables) in atmel_pmecc_build_gf_tables() argument
204 gf_tables->alpha_to[i] = x; in atmel_pmecc_build_gf_tables()
205 gf_tables->index_of[x] = i; in atmel_pmecc_build_gf_tables()
213 gf_tables->alpha_to[nn] = 1; in atmel_pmecc_build_gf_tables()
214 gf_tables->index_of[0] = 0; in atmel_pmecc_build_gf_tables()
222 struct atmel_pmecc_gf_tables *gf_tables; in atmel_pmecc_create_gf_tables() local
236 gf_tables = kzalloc(sizeof(*gf_tables) + in atmel_pmecc_create_gf_tables()
239 if (!gf_tables) in atmel_pmecc_create_gf_tables()
242 gf_tables->alpha_to = (void *)(gf_tables + 1); in atmel_pmecc_create_gf_tables()
243 gf_tables->index_of = gf_tables->alpha_to + table_size; in atmel_pmecc_create_gf_tables()
245 ret = atmel_pmecc_build_gf_tables(degree, poly, gf_tables); in atmel_pmecc_create_gf_tables()
247 kfree(gf_tables); in atmel_pmecc_create_gf_tables()
251 return gf_tables; in atmel_pmecc_create_gf_tables()
257 const struct atmel_pmecc_gf_tables **gf_tables, *ret; in atmel_pmecc_get_gf_tables() local
261 gf_tables = &pmecc_gf_tables_512; in atmel_pmecc_get_gf_tables()
263 gf_tables = &pmecc_gf_tables_1024; in atmel_pmecc_get_gf_tables()
265 ret = *gf_tables; in atmel_pmecc_get_gf_tables()
270 *gf_tables = ret; in atmel_pmecc_get_gf_tables()
347 const struct atmel_pmecc_gf_tables *gf_tables; in atmel_pmecc_create_user() local
382 gf_tables = atmel_pmecc_get_gf_tables(req); in atmel_pmecc_create_user()
383 if (IS_ERR(gf_tables)) { in atmel_pmecc_create_user()
385 return ERR_CAST(gf_tables); in atmel_pmecc_create_user()
388 user->gf_tables = gf_tables; in atmel_pmecc_create_user()
451 s16 *alpha_to = user->gf_tables->alpha_to; in atmel_pmecc_substitute()
452 s16 *index_of = user->gf_tables->index_of; in atmel_pmecc_substitute()
498 s16 *index_of = user->gf_tables->index_of; in atmel_pmecc_get_sigma()
499 s16 *alpha_to = user->gf_tables->alpha_to; in atmel_pmecc_get_sigma()