Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/crypto/hisilicon/
Dsgl.c59 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl = 0; in hisi_acc_create_sgl_pool() local
73 remain_sgl = count % sgl_num_per_block; in hisi_acc_create_sgl_pool()
75 if ((!remain_sgl && block_num > HISI_ACC_MEM_BLOCK_NR) || in hisi_acc_create_sgl_pool()
76 (remain_sgl > 0 && block_num > HISI_ACC_MEM_BLOCK_NR - 1)) in hisi_acc_create_sgl_pool()
94 if (remain_sgl > 0) { in hisi_acc_create_sgl_pool()
95 block[i].sgl = dma_alloc_coherent(dev, remain_sgl * sgl_size, in hisi_acc_create_sgl_pool()
101 block[i].size = remain_sgl * sgl_size; in hisi_acc_create_sgl_pool()
105 pool->block_num = remain_sgl ? block_num + 1 : block_num; in hisi_acc_create_sgl_pool()