Lines Matching refs:sgl_current
159 struct sec_hw_sgl *sgl_current, *sgl_next; in sec_free_hw_sgl() local
162 sgl_current = hw_sgl; in sec_free_hw_sgl()
163 while (sgl_current) { in sec_free_hw_sgl()
164 sgl_next = sgl_current->next; in sec_free_hw_sgl()
165 sgl_next_dma = sgl_current->next_sgl; in sec_free_hw_sgl()
167 dma_pool_free(info->hw_sgl_pool, sgl_current, psec_sgl); in sec_free_hw_sgl()
169 sgl_current = sgl_next; in sec_free_hw_sgl()
181 struct sec_hw_sgl *sgl_current = NULL; in sec_alloc_and_fill_hw_sgl() local
200 if (!sgl_current) { /* First one */ in sec_alloc_and_fill_hw_sgl()
204 sgl_current->entry_sum_in_sgl = SEC_MAX_SGE_NUM; in sec_alloc_and_fill_hw_sgl()
205 sgl_current->next_sgl = sgl_next_dma; in sec_alloc_and_fill_hw_sgl()
206 sgl_current->next = sgl_next; in sec_alloc_and_fill_hw_sgl()
208 sgl_current = sgl_next; in sec_alloc_and_fill_hw_sgl()
210 sgl_current->sge_entries[sge_index].buf = sg_dma_address(sg); in sec_alloc_and_fill_hw_sgl()
211 sgl_current->sge_entries[sge_index].len = sg_dma_len(sg); in sec_alloc_and_fill_hw_sgl()
212 sgl_current->data_bytes_in_sgl += sg_dma_len(sg); in sec_alloc_and_fill_hw_sgl()
214 sgl_current->entry_sum_in_sgl = count % SEC_MAX_SGE_NUM; in sec_alloc_and_fill_hw_sgl()
215 sgl_current->next_sgl = 0; in sec_alloc_and_fill_hw_sgl()