Lines Matching defs:algo
105 struct seg6_hmac_algo *algo;
110 algo = &hmac_algos[i];
111 if (algo->alg_id == alg_id)
112 return algo;
121 struct seg6_hmac_algo *algo;
126 algo = __hmac_get_algo(hinfo->alg_id);
127 if (!algo)
130 tfm = *this_cpu_ptr(algo->tfms);
145 shash = *this_cpu_ptr(algo->shashs);
353 struct seg6_hmac_algo *algo;
364 algo = &hmac_algos[i];
365 algo->tfms = alloc_percpu(struct crypto_shash *);
366 if (!algo->tfms)
370 tfm = crypto_alloc_shash(algo->name, 0, 0);
373 p_tfm = per_cpu_ptr(algo->tfms, cpu);
377 p_tfm = raw_cpu_ptr(algo->tfms);
382 algo->shashs = alloc_percpu(struct shash_desc *);
383 if (!algo->shashs)
391 *per_cpu_ptr(algo->shashs, cpu) = shash;
412 struct seg6_hmac_algo *algo = NULL;
417 algo = &hmac_algos[i];
422 shash = *per_cpu_ptr(algo->shashs, cpu);
424 tfm = *per_cpu_ptr(algo->tfms, cpu);
427 free_percpu(algo->tfms);
428 free_percpu(algo->shashs);