Lines Matching refs:work_data
48 static void atmel_ecdh_done(struct atmel_i2c_work_data *work_data, void *areq, in atmel_ecdh_done() argument
52 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_ecdh_done()
69 kfree_sensitive(work_data); in atmel_ecdh_done()
169 struct atmel_i2c_work_data *work_data; in atmel_ecdh_compute_shared_secret() local
185 work_data = kmalloc(sizeof(*work_data), gfp); in atmel_ecdh_compute_shared_secret()
186 if (!work_data) in atmel_ecdh_compute_shared_secret()
189 work_data->ctx = ctx; in atmel_ecdh_compute_shared_secret()
190 work_data->client = ctx->client; in atmel_ecdh_compute_shared_secret()
192 ret = atmel_i2c_init_ecdh_cmd(&work_data->cmd, req->src); in atmel_ecdh_compute_shared_secret()
196 atmel_i2c_enqueue(work_data, atmel_ecdh_done, req); in atmel_ecdh_compute_shared_secret()
201 kfree(work_data); in atmel_ecdh_compute_shared_secret()