Home
last modified time | relevance | path

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

/drivers/crypto/ccp/
Dccp-ops.c268 ccp_sg_free(&data->sg_wa); in ccp_free_data()
280 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data()
299 struct ccp_sg_workarea *sg_wa = &data->sg_wa; in ccp_queue_buf() local
307 if (!sg_wa->sg) in ccp_queue_buf()
314 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
315 scatterwalk_map_and_copy(dm_wa->address, sg_wa->sg, sg_wa->sg_used, in ccp_queue_buf()
320 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf()
321 nbytes = min(sg_dma_len(sg_wa->dma_sg) - sg_wa->sg_used, in ccp_queue_buf()
323 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
326 ccp_update_sg_workarea(sg_wa, nbytes); in ccp_queue_buf()
[all …]
Dccp-dev.h481 struct ccp_sg_workarea sg_wa; member