Home
last modified time | relevance | path

Searched refs:work_data (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/
Datmel-sha204a.c21 static void atmel_sha204a_rng_done(struct atmel_i2c_work_data *work_data, in atmel_sha204a_rng_done() argument
24 struct atmel_i2c_client_priv *i2c_priv = work_data->ctx; in atmel_sha204a_rng_done()
32 rng->priv = (unsigned long)work_data; in atmel_sha204a_rng_done()
40 struct atmel_i2c_work_data *work_data; in atmel_sha204a_rng_read_nonblocking() local
49 work_data = (struct atmel_i2c_work_data *)rng->priv; in atmel_sha204a_rng_read_nonblocking()
50 max = min(sizeof(work_data->cmd.data), max); in atmel_sha204a_rng_read_nonblocking()
51 memcpy(data, &work_data->cmd.data, max); in atmel_sha204a_rng_read_nonblocking()
54 work_data = kmalloc(sizeof(*work_data), GFP_ATOMIC); in atmel_sha204a_rng_read_nonblocking()
55 if (!work_data) in atmel_sha204a_rng_read_nonblocking()
58 work_data->ctx = i2c_priv; in atmel_sha204a_rng_read_nonblocking()
[all …]
Datmel-i2c.c255 struct atmel_i2c_work_data *work_data = in atmel_i2c_work_handler() local
257 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_i2c_work_handler()
258 struct i2c_client *client = work_data->client; in atmel_i2c_work_handler()
262 work_data->cbk(work_data, work_data->areq, status); in atmel_i2c_work_handler()
265 void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data, in atmel_i2c_enqueue() argument
266 void (*cbk)(struct atmel_i2c_work_data *work_data, in atmel_i2c_enqueue() argument
270 work_data->cbk = (void *)cbk; in atmel_i2c_enqueue()
271 work_data->areq = areq; in atmel_i2c_enqueue()
273 INIT_WORK(&work_data->work, atmel_i2c_work_handler); in atmel_i2c_enqueue()
274 schedule_work(&work_data->work); in atmel_i2c_enqueue()
Datmel-ecc.c50 static void atmel_ecdh_done(struct atmel_i2c_work_data *work_data, void *areq, in atmel_ecdh_done() argument
54 struct atmel_ecdh_ctx *ctx = work_data->ctx; in atmel_ecdh_done()
55 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_ecdh_done()
72 kzfree(work_data); in atmel_ecdh_done()
182 struct atmel_i2c_work_data *work_data; in atmel_ecdh_compute_shared_secret() local
198 work_data = kmalloc(sizeof(*work_data), gfp); in atmel_ecdh_compute_shared_secret()
199 if (!work_data) in atmel_ecdh_compute_shared_secret()
202 work_data->ctx = ctx; in atmel_ecdh_compute_shared_secret()
203 work_data->client = ctx->client; in atmel_ecdh_compute_shared_secret()
205 ret = atmel_i2c_init_ecdh_cmd(&work_data->cmd, req->src); in atmel_ecdh_compute_shared_secret()
[all …]
Datmel-i2c.h163 void (*cbk)(struct atmel_i2c_work_data *work_data, void *areq,
172 void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data,
173 void (*cbk)(struct atmel_i2c_work_data *work_data,
/drivers/crypto/inside-secure/
Dsafexcel.c1086 &priv->ring[ring].work_data.work); in safexcel_irq_ring_thread()
1493 priv->ring[i].work_data.priv = priv; in safexcel_probe_generic()
1494 priv->ring[i].work_data.ring = i; in safexcel_probe_generic()
1495 INIT_WORK(&priv->ring[i].work_data.work, in safexcel_probe_generic()
Dsafexcel_hash.c453 &priv->ring[ring].work_data.work); in safexcel_handle_inv_result()
541 &priv->ring[ring].work_data.work); in safexcel_ahash_exit_inv()
633 &priv->ring[ring].work_data.work); in safexcel_ahash_enqueue()
Dsafexcel_cipher.c824 &priv->ring[ring].work_data.work); in safexcel_handle_inv_result()
969 &priv->ring[ring].work_data.work); in safexcel_cipher_exit_inv()
1045 &priv->ring[ring].work_data.work); in safexcel_queue_req()
Dsafexcel.h619 struct safexcel_work_data work_data; member