Searched refs:work_data (Results 1 – 8 of 8) sorted by relevance
/drivers/crypto/ |
D | atmel-sha204a.c | 21 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 …]
|
D | atmel-i2c.c | 255 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()
|
D | atmel-ecc.c | 50 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 …]
|
D | atmel-i2c.h | 163 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/ |
D | safexcel.c | 1086 &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()
|
D | safexcel_hash.c | 453 &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()
|
D | safexcel_cipher.c | 824 &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()
|
D | safexcel.h | 619 struct safexcel_work_data work_data; member
|