Searched refs:hw_sgl (Results 1 – 5 of 5) sorted by relevance
172 static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in inc_hw_sgl_sge() argument174 u16 var = le16_to_cpu(hw_sgl->entry_sum_in_sgl); in inc_hw_sgl_sge()177 hw_sgl->entry_sum_in_sgl = cpu_to_le16(var); in inc_hw_sgl_sge()180 static void update_hw_sgl_sum_sge(struct hisi_acc_hw_sgl *hw_sgl, u16 sum) in update_hw_sgl_sum_sge() argument182 hw_sgl->entry_sum_in_chain = cpu_to_le16(sum); in update_hw_sgl_sum_sge()255 struct hisi_acc_hw_sgl *hw_sgl) in hisi_acc_sg_buf_unmap() argument257 if (!dev || !sgl || !hw_sgl) in hisi_acc_sg_buf_unmap()262 hw_sgl->entry_sum_in_chain = 0; in hisi_acc_sg_buf_unmap()263 hw_sgl->entry_sum_in_sgl = 0; in hisi_acc_sg_buf_unmap()264 hw_sgl->entry_length_in_sgl = 0; in hisi_acc_sg_buf_unmap()
372 struct hisi_acc_hw_sgl *hw_sgl);
1728 struct myrs_sge *hw_sgl; in myrs_queuecommand() local1733 hw_sgl = dma_pool_alloc(cs->sg_pool, GFP_ATOMIC, in myrs_queuecommand()1735 if (WARN_ON(!hw_sgl)) { in myrs_queuecommand()1750 cmd_blk->sgl = hw_sgl; in myrs_queuecommand()1759 hw_sgl = hw_sge->sge; in myrs_queuecommand()1762 if (WARN_ON(!hw_sgl)) { in myrs_queuecommand()1768 hw_sgl->sge_addr = (u64)sg_dma_address(sgl); in myrs_queuecommand()1769 hw_sgl->sge_count = (u64)sg_dma_len(sgl); in myrs_queuecommand()1770 hw_sgl++; in myrs_queuecommand()
1598 struct myrb_sge *hw_sgl; in myrb_ldev_queuecommand() local1602 hw_sgl = dma_pool_alloc(cb->sg_pool, GFP_ATOMIC, &hw_sgl_addr); in myrb_ldev_queuecommand()1603 if (!hw_sgl) in myrb_ldev_queuecommand()1606 cmd_blk->sgl = hw_sgl; in myrb_ldev_queuecommand()1621 hw_sgl->sge_addr = (u32)sg_dma_address(sgl); in myrb_ldev_queuecommand()1622 hw_sgl->sge_count = (u32)sg_dma_len(sgl); in myrb_ldev_queuecommand()1623 hw_sgl++; in myrb_ldev_queuecommand()
156 static void sec_free_hw_sgl(struct sec_hw_sgl *hw_sgl, in sec_free_hw_sgl() argument162 sgl_current = hw_sgl; in sec_free_hw_sgl()