Lines Matching refs:hw_sgl
184 static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in inc_hw_sgl_sge() argument
186 u16 var = le16_to_cpu(hw_sgl->entry_sum_in_sgl); in inc_hw_sgl_sge()
189 hw_sgl->entry_sum_in_sgl = cpu_to_le16(var); in inc_hw_sgl_sge()
192 static void update_hw_sgl_sum_sge(struct hisi_acc_hw_sgl *hw_sgl, u16 sum) in update_hw_sgl_sum_sge() argument
194 hw_sgl->entry_sum_in_chain = cpu_to_le16(sum); in update_hw_sgl_sum_sge()
197 static void clear_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in clear_hw_sgl_sge() argument
199 struct acc_hw_sge *hw_sge = hw_sgl->sge_entries; in clear_hw_sgl_sge()
202 for (i = 0; i < le16_to_cpu(hw_sgl->entry_sum_in_sgl); i++) { in clear_hw_sgl_sge()
280 struct hisi_acc_hw_sgl *hw_sgl) in hisi_acc_sg_buf_unmap() argument
282 if (!dev || !sgl || !hw_sgl) in hisi_acc_sg_buf_unmap()
286 clear_hw_sgl_sge(hw_sgl); in hisi_acc_sg_buf_unmap()
287 hw_sgl->entry_sum_in_chain = 0; in hisi_acc_sg_buf_unmap()
288 hw_sgl->entry_sum_in_sgl = 0; in hisi_acc_sg_buf_unmap()
289 hw_sgl->entry_length_in_sgl = 0; in hisi_acc_sg_buf_unmap()