Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/kernel/
Dworkqueue.c634 static int get_work_color(unsigned long work_data) in get_work_color() argument
636 return (work_data >> WORK_STRUCT_COLOR_SHIFT) & in get_work_color()
1481 static void pwq_dec_nr_in_flight(struct pool_workqueue *pwq, unsigned long work_data) in pwq_dec_nr_in_flight() argument
1483 int color = get_work_color(work_data); in pwq_dec_nr_in_flight()
1485 if (!(work_data & WORK_STRUCT_INACTIVE)) { in pwq_dec_nr_in_flight()
2539 unsigned long work_data; in process_one_work() local
2563 work_data = *work_data_bits(work); in process_one_work()
2564 worker->current_color = get_work_color(work_data); in process_one_work()
2674 pwq_dec_nr_in_flight(pwq, work_data); in process_one_work()
/linux-6.6.21/drivers/crypto/inside-secure/
Dsafexcel.c1133 &priv->ring[ring].work_data.work); in safexcel_irq_ring_thread()
1666 priv->ring[i].work_data.priv = priv; in safexcel_probe_generic()
1667 priv->ring[i].work_data.ring = i; in safexcel_probe_generic()
1668 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()
649 &priv->ring[ring].work_data.work); in safexcel_ahash_exit_inv()
737 &priv->ring[ring].work_data.work); in safexcel_ahash_enqueue()
Dsafexcel_cipher.c969 &priv->ring[ring].work_data.work); in safexcel_handle_inv_result()
1113 &priv->ring[ring].work_data.work); in safexcel_cipher_exit_inv()
1189 &priv->ring[ring].work_data.work); in safexcel_queue_req()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dsdio.c1235 struct rtw_sdio_work_data *work_data = in rtw_sdio_tx_handler() local
1241 rtwdev = work_data->rtwdev; in rtw_sdio_tx_handler()