Lines Matching refs:hw_sgl
52 * @sge_nr: The count of sge in hw_sgl
183 static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl)
185 u16 var = le16_to_cpu(hw_sgl->entry_sum_in_sgl);
188 hw_sgl->entry_sum_in_sgl = cpu_to_le16(var);
191 static void update_hw_sgl_sum_sge(struct hisi_acc_hw_sgl *hw_sgl, u16 sum)
193 hw_sgl->entry_sum_in_chain = cpu_to_le16(sum);
196 static void clear_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl)
198 struct acc_hw_sge *hw_sge = hw_sgl->sge_entries;
201 for (i = 0; i < le16_to_cpu(hw_sgl->entry_sum_in_sgl); i++) {
273 * @hw_sgl: Virtual address of hw sgl.
278 struct hisi_acc_hw_sgl *hw_sgl)
280 if (!dev || !sgl || !hw_sgl)
284 clear_hw_sgl_sge(hw_sgl);
285 hw_sgl->entry_sum_in_chain = 0;
286 hw_sgl->entry_sum_in_sgl = 0;
287 hw_sgl->entry_length_in_sgl = 0;