Home
last modified time | relevance | path

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

/linux-6.1.9/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.c256 struct atmel_i2c_work_data *work_data = in atmel_i2c_work_handler() local
258 struct atmel_i2c_cmd *cmd = &work_data->cmd; in atmel_i2c_work_handler()
259 struct i2c_client *client = work_data->client; in atmel_i2c_work_handler()
263 work_data->cbk(work_data, work_data->areq, status); in atmel_i2c_work_handler()
268 void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data, in atmel_i2c_enqueue() argument
269 void (*cbk)(struct atmel_i2c_work_data *work_data, in atmel_i2c_enqueue() argument
273 work_data->cbk = (void *)cbk; in atmel_i2c_enqueue()
274 work_data->areq = areq; in atmel_i2c_enqueue()
276 INIT_WORK(&work_data->work, atmel_i2c_work_handler); in atmel_i2c_enqueue()
277 queue_work(atmel_wq, &work_data->work); in atmel_i2c_enqueue()
Datmel-ecc.c48 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()
[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,
/linux-6.1.9/kernel/
Dworkqueue.c601 static int get_work_color(unsigned long work_data) in get_work_color() argument
603 return (work_data >> WORK_STRUCT_COLOR_SHIFT) & in get_work_color()
1192 static void pwq_dec_nr_in_flight(struct pool_workqueue *pwq, unsigned long work_data) in pwq_dec_nr_in_flight() argument
1194 int color = get_work_color(work_data); in pwq_dec_nr_in_flight()
1196 if (!(work_data & WORK_STRUCT_INACTIVE)) { in pwq_dec_nr_in_flight()
2188 unsigned long work_data; in process_one_work() local
2224 work_data = *work_data_bits(work); in process_one_work()
2225 worker->current_color = get_work_color(work_data); in process_one_work()
2332 pwq_dec_nr_in_flight(pwq, work_data); in process_one_work()
/linux-6.1.9/drivers/crypto/inside-secure/
Dsafexcel.c1136 &priv->ring[ring].work_data.work); in safexcel_irq_ring_thread()
1664 priv->ring[i].work_data.priv = priv; in safexcel_probe_generic()
1665 priv->ring[i].work_data.ring = i; in safexcel_probe_generic()
1666 INIT_WORK(&priv->ring[i].work_data.work, in safexcel_probe_generic()
Dsafexcel.h698 struct safexcel_work_data work_data; member
Dsafexcel_hash.c560 &priv->ring[ring].work_data.work); in safexcel_handle_inv_result()
648 &priv->ring[ring].work_data.work); in safexcel_ahash_exit_inv()
737 &priv->ring[ring].work_data.work); in safexcel_ahash_enqueue()
Dsafexcel_cipher.c966 &priv->ring[ring].work_data.work); in safexcel_handle_inv_result()
1111 &priv->ring[ring].work_data.work); in safexcel_cipher_exit_inv()
1187 &priv->ring[ring].work_data.work); in safexcel_queue_req()