Searched refs:tfms (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/net/xfrm/
H A Dxfrm_ipcomp.c33 struct crypto_comp * __percpu *tfms; member in struct:ipcomp_tfms
50 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); ipcomp_decompress()
150 tfm = *this_cpu_ptr(ipcd->tfms); ipcomp_compress()
247 static void ipcomp_free_tfms(struct crypto_comp * __percpu *tfms) ipcomp_free_tfms() argument
253 if (pos->tfms == tfms) ipcomp_free_tfms()
265 if (!tfms) ipcomp_free_tfms()
269 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); for_each_possible_cpu()
272 free_percpu(tfms);
278 struct crypto_comp * __percpu *tfms; ipcomp_alloc_tfms() local
286 tfm = __this_cpu_read(*pos->tfms); ipcomp_alloc_tfms()
290 return pos->tfms; ipcomp_alloc_tfms()
302 pos->tfms = tfms = alloc_percpu(struct crypto_comp *); ipcomp_alloc_tfms()
303 if (!tfms) ipcomp_alloc_tfms()
311 *per_cpu_ptr(tfms, cpu) = tfm; for_each_possible_cpu()
314 return tfms;
317 ipcomp_free_tfms(tfms);
323 if (ipcd->tfms) ipcomp_free_data()
324 ipcomp_free_tfms(ipcd->tfms); ipcomp_free_data()
363 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); ipcomp_init_state()
364 if (!ipcd->tfms) ipcomp_init_state()
/linux-4.4.14/include/net/
H A Dipcomp.h12 struct crypto_comp * __percpu *tfms; member in struct:ipcomp_data
/linux-4.4.14/arch/x86/boot/
H A Dcpuflags.c86 u32 tfms; get_cpuflags() local
102 cpuid(0x1, &tfms, &ignored, &cpu.flags[4], get_cpuflags()
104 cpu.level = (tfms >> 8) & 15; get_cpuflags()
105 cpu.model = (tfms >> 4) & 15; get_cpuflags()
107 cpu.model += ((tfms >> 16) & 0xf) << 4; get_cpuflags()
/linux-4.4.14/drivers/md/
H A Ddm-crypt.c156 struct crypto_ablkcipher **tfms; member in struct:crypt_config
194 return cc->tfms[0]; any_tfm()
894 ablkcipher_request_set_tfm(ctx->req, cc->tfms[key_index]); crypt_alloc_req()
1435 if (!cc->tfms) crypt_free_tfms()
1439 if (cc->tfms[i] && !IS_ERR(cc->tfms[i])) { crypt_free_tfms()
1440 crypto_free_ablkcipher(cc->tfms[i]); crypt_free_tfms()
1441 cc->tfms[i] = NULL; crypt_free_tfms()
1444 kfree(cc->tfms); crypt_free_tfms()
1445 cc->tfms = NULL; crypt_free_tfms()
1453 cc->tfms = kmalloc(cc->tfms_count * sizeof(struct crypto_ablkcipher *), crypt_alloc_tfms()
1455 if (!cc->tfms) crypt_alloc_tfms()
1459 cc->tfms[i] = crypto_alloc_ablkcipher(ciphermode, 0, 0); crypt_alloc_tfms()
1460 if (IS_ERR(cc->tfms[i])) { crypt_alloc_tfms()
1461 err = PTR_ERR(cc->tfms[i]); crypt_alloc_tfms()
1479 r = crypto_ablkcipher_setkey(cc->tfms[i], crypt_setkey_allcpus()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dcommon.c581 u32 junk, tfms, cap0, misc; cpu_detect() local
583 cpuid(0x00000001, &tfms, &misc, &junk, &cap0); cpu_detect()
584 c->x86 = (tfms >> 8) & 0xf; cpu_detect()
585 c->x86_model = (tfms >> 4) & 0xf; cpu_detect()
586 c->x86_mask = tfms & 0xf; cpu_detect()
589 c->x86 += (tfms >> 20) & 0xff; cpu_detect()
591 c->x86_model += ((tfms >> 16) & 0xf) << 4; cpu_detect()
602 u32 tfms, xlvl; get_cpu_cap() local
609 cpuid(0x00000001, &tfms, &ebx, &excap, &capability); get_cpu_cap()
/linux-4.4.14/drivers/gpu/drm/gma500/
H A Dmmu.c483 uint32_t tfms, misc, cap0, cap4, clflush_size; psb_mmu_driver_init() local
490 cpuid(0x00000001, &tfms, &misc, &cap0, &cap4); psb_mmu_driver_init()

Completed in 253 milliseconds