Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/crypto/hisilicon/sec/
Dsec_algs.c162 struct sec_hw_sgl *sgl_current = NULL; in sec_alloc_and_fill_hw_sgl() local
181 if (!sgl_current) { /* First one */ in sec_alloc_and_fill_hw_sgl()
185 sgl_current->entry_sum_in_sgl = SEC_MAX_SGE_NUM; in sec_alloc_and_fill_hw_sgl()
186 sgl_current->next_sgl = sgl_next_dma; in sec_alloc_and_fill_hw_sgl()
187 sgl_current->next = sgl_next; in sec_alloc_and_fill_hw_sgl()
189 sgl_current = sgl_next; in sec_alloc_and_fill_hw_sgl()
191 sgl_current->sge_entries[sge_index].buf = sg_dma_address(sg); in sec_alloc_and_fill_hw_sgl()
192 sgl_current->sge_entries[sge_index].len = sg_dma_len(sg); in sec_alloc_and_fill_hw_sgl()
193 sgl_current->data_bytes_in_sgl += sg_dma_len(sg); in sec_alloc_and_fill_hw_sgl()
195 sgl_current->entry_sum_in_sgl = count % SEC_MAX_SGE_NUM; in sec_alloc_and_fill_hw_sgl()
[all …]