Searched refs:hw_sgl (Results 1 - 10 of 10) sorted by relevance
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/ |
H A D | sgl.c | 52 * @sge_nr: The count of sge in hw_sgl 183 static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in inc_hw_sgl_sge() argument 185 u16 var = le16_to_cpu(hw_sgl->entry_sum_in_sgl); in inc_hw_sgl_sge() 188 hw_sgl->entry_sum_in_sgl = cpu_to_le16(var); in inc_hw_sgl_sge() 191 static void update_hw_sgl_sum_sge(struct hisi_acc_hw_sgl *hw_sgl, u16 sum) in update_hw_sgl_sum_sge() argument 193 hw_sgl->entry_sum_in_chain = cpu_to_le16(sum); in update_hw_sgl_sum_sge() 196 static void clear_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in clear_hw_sgl_sge() argument 198 struct acc_hw_sge *hw_sge = hw_sgl->sge_entries; in clear_hw_sgl_sge() 201 for (i = 0; i < le16_to_cpu(hw_sgl->entry_sum_in_sgl); i++) { in clear_hw_sgl_sge() 273 * @hw_sgl 277 hisi_acc_sg_buf_unmap(struct device *dev, struct scatterlist *sgl, struct hisi_acc_hw_sgl *hw_sgl) hisi_acc_sg_buf_unmap() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/ |
H A D | sgl.c | 51 * @sge_nr: The count of sge in hw_sgl 171 static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl) in inc_hw_sgl_sge() argument 173 u16 var = le16_to_cpu(hw_sgl->entry_sum_in_sgl); in inc_hw_sgl_sge() 176 hw_sgl->entry_sum_in_sgl = cpu_to_le16(var); in inc_hw_sgl_sge() 179 static void update_hw_sgl_sum_sge(struct hisi_acc_hw_sgl *hw_sgl, u16 sum) in update_hw_sgl_sum_sge() argument 181 hw_sgl->entry_sum_in_chain = cpu_to_le16(sum); in update_hw_sgl_sum_sge() 247 * @hw_sgl: Virtual address of hw sgl. 254 struct hisi_acc_hw_sgl *hw_sgl) in hisi_acc_sg_buf_unmap() 256 if (!dev || !sgl || !hw_sgl) in hisi_acc_sg_buf_unmap() 261 hw_sgl in hisi_acc_sg_buf_unmap() 253 hisi_acc_sg_buf_unmap(struct device *dev, struct scatterlist *sgl, struct hisi_acc_hw_sgl *hw_sgl) hisi_acc_sg_buf_unmap() argument [all...] |
H A D | qm.h | 374 struct hisi_acc_hw_sgl *hw_sgl);
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | myrs.c | 1728 struct myrs_sge *hw_sgl; in myrs_queuecommand() local 1733 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()
|
H A D | myrb.c | 1599 struct myrb_sge *hw_sgl; in myrb_ldev_queuecommand() local 1603 hw_sgl = dma_pool_alloc(cb->sg_pool, GFP_ATOMIC, &hw_sgl_addr); in myrb_ldev_queuecommand() 1604 if (!hw_sgl) in myrb_ldev_queuecommand() 1607 cmd_blk->sgl = hw_sgl; in myrb_ldev_queuecommand() 1622 hw_sgl->sge_addr = (u32)sg_dma_address(sgl); in myrb_ldev_queuecommand() 1623 hw_sgl->sge_count = (u32)sg_dma_len(sgl); in myrb_ldev_queuecommand() 1624 hw_sgl++; in myrb_ldev_queuecommand()
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | myrs.c | 1724 struct myrs_sge *hw_sgl; in myrs_queuecommand() local 1729 hw_sgl = dma_pool_alloc(cs->sg_pool, GFP_ATOMIC, in myrs_queuecommand() 1731 if (WARN_ON(!hw_sgl)) { in myrs_queuecommand() 1746 cmd_blk->sgl = hw_sgl; in myrs_queuecommand() 1755 hw_sgl = hw_sge->sge; in myrs_queuecommand() 1758 if (WARN_ON(!hw_sgl)) { in myrs_queuecommand() 1764 hw_sgl->sge_addr = (u64)sg_dma_address(sgl); in myrs_queuecommand() 1765 hw_sgl->sge_count = (u64)sg_dma_len(sgl); in myrs_queuecommand() 1766 hw_sgl++; in myrs_queuecommand()
|
H A D | myrb.c | 1571 struct myrb_sge *hw_sgl; in myrb_ldev_queuecommand() local 1575 hw_sgl = dma_pool_alloc(cb->sg_pool, GFP_ATOMIC, &hw_sgl_addr); in myrb_ldev_queuecommand() 1576 if (!hw_sgl) in myrb_ldev_queuecommand() 1579 cmd_blk->sgl = hw_sgl; in myrb_ldev_queuecommand() 1594 hw_sgl->sge_addr = (u32)sg_dma_address(sgl); in myrb_ldev_queuecommand() 1595 hw_sgl->sge_count = (u32)sg_dma_len(sgl); in myrb_ldev_queuecommand() 1596 hw_sgl++; in myrb_ldev_queuecommand()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | hisi_acc_qm.h | 533 struct hisi_acc_hw_sgl *hw_sgl);
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 156 static void sec_free_hw_sgl(struct sec_hw_sgl *hw_sgl, in sec_free_hw_sgl() argument 162 sgl_current = hw_sgl; in sec_free_hw_sgl()
|
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 156 static void sec_free_hw_sgl(struct sec_hw_sgl *hw_sgl, in sec_free_hw_sgl() argument 162 sgl_current = hw_sgl; in sec_free_hw_sgl()
|
Completed in 23 milliseconds