Searched refs:remain_sgl (Results 1 – 1 of 1) sorted by relevance
60 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl; in hisi_acc_create_sgl_pool() local80 remain_sgl = count % sgl_num_per_block; in hisi_acc_create_sgl_pool()82 if ((!remain_sgl && block_num > HISI_ACC_MEM_BLOCK_NR) || in hisi_acc_create_sgl_pool()83 (remain_sgl > 0 && block_num > HISI_ACC_MEM_BLOCK_NR - 1)) in hisi_acc_create_sgl_pool()103 if (remain_sgl > 0) { in hisi_acc_create_sgl_pool()104 block[i].sgl = dma_alloc_coherent(dev, remain_sgl * sgl_size, in hisi_acc_create_sgl_pool()112 block[i].size = remain_sgl * sgl_size; in hisi_acc_create_sgl_pool()116 pool->block_num = remain_sgl ? block_num + 1 : block_num; in hisi_acc_create_sgl_pool()