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);
355 struct seg6_hmac_algo *algo;
367 algo = &hmac_algos[i];
368 algo->tfms = alloc_percpu(struct crypto_shash *);
369 if (!algo->tfms)
373 tfm = crypto_alloc_shash(algo->name, 0, 0);
378 p_tfm = per_cpu_ptr(algo->tfms, cpu);
382 p_tfm = raw_cpu_ptr(algo->tfms);
387 algo->shashs = alloc_percpu(struct shash_desc *);
388 if (!algo->shashs)
396 *per_cpu_ptr(algo->shashs, cpu) = shash;
421 struct seg6_hmac_algo *algo = NULL;
428 algo = &hmac_algos[i];
430 if (algo->shashs) {
432 shash = *per_cpu_ptr(algo->shashs, cpu);
435 free_percpu(algo->shashs);
438 if (algo->tfms) {
440 tfm = *per_cpu_ptr(algo->tfms, cpu);
443 free_percpu(algo->tfms);