Home
last modified time | relevance | path

Searched refs:sg_wa (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/crypto/ccp/
Dccp-ops.c254 ccp_sg_free(&data->sg_wa); in ccp_free_data()
266 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data()
285 struct ccp_sg_workarea *sg_wa = &data->sg_wa; in ccp_queue_buf() local
293 if (!sg_wa->sg) in ccp_queue_buf()
300 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
301 scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used, in ccp_queue_buf()
306 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf()
307 nbytes = min(sg_wa->sg->length - sg_wa->sg_used, in ccp_queue_buf()
309 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
312 ccp_update_sg_workarea(sg_wa, nbytes); in ccp_queue_buf()
[all …]
Dccp-dev.h482 struct ccp_sg_workarea sg_wa; member