Lines Matching full:param

52 	struct cryptomgr_param *param = data;  in cryptomgr_probe()  local
56 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
61 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
67 param->larval->adult = ERR_PTR(err); in cryptomgr_probe()
68 param->larval->alg.cra_flags |= CRYPTO_ALG_DEAD; in cryptomgr_probe()
69 complete_all(&param->larval->completion); in cryptomgr_probe()
70 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
71 kfree(param); in cryptomgr_probe()
78 struct cryptomgr_param *param; in cryptomgr_schedule_probe() local
87 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_probe()
88 if (!param) in cryptomgr_schedule_probe()
98 memcpy(param->template, name, len); in cryptomgr_schedule_probe()
126 param->attrs[i].attr.rta_len = sizeof(param->attrs[i]); in cryptomgr_schedule_probe()
127 param->attrs[i].attr.rta_type = CRYPTOA_ALG; in cryptomgr_schedule_probe()
128 memcpy(param->attrs[i].data.name, name, len); in cryptomgr_schedule_probe()
130 param->tb[i + 1] = &param->attrs[i].attr; in cryptomgr_schedule_probe()
143 param->tb[i + 1] = NULL; in cryptomgr_schedule_probe()
145 param->type.attr.rta_len = sizeof(param->type); in cryptomgr_schedule_probe()
146 param->type.attr.rta_type = CRYPTOA_TYPE; in cryptomgr_schedule_probe()
147 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
148 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
149 param->tb[0] = &param->type.attr; in cryptomgr_schedule_probe()
151 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe()
152 param->omask = larval->mask; in cryptomgr_schedule_probe()
155 param->larval = larval; in cryptomgr_schedule_probe()
157 thread = kthread_run(cryptomgr_probe, param, "cryptomgr_probe"); in cryptomgr_schedule_probe()
166 kfree(param); in cryptomgr_schedule_probe()
175 struct crypto_test_param *param = data; in cryptomgr_test() local
176 u32 type = param->type; in cryptomgr_test()
179 err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED); in cryptomgr_test()
181 crypto_alg_tested(param->driver, err); in cryptomgr_test()
183 kfree(param); in cryptomgr_test()
190 struct crypto_test_param *param; in cryptomgr_schedule_test() local
198 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_test()
199 if (!param) in cryptomgr_schedule_test()
202 memcpy(param->driver, alg->cra_driver_name, sizeof(param->driver)); in cryptomgr_schedule_test()
203 memcpy(param->alg, alg->cra_name, sizeof(param->alg)); in cryptomgr_schedule_test()
204 param->type = alg->cra_flags; in cryptomgr_schedule_test()
206 thread = kthread_run(cryptomgr_test, param, "cryptomgr_test"); in cryptomgr_schedule_test()
213 kfree(param); in cryptomgr_schedule_test()