Home
last modified time | relevance | path

Searched refs:lmt_info (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/crypto/marvell/octeontx2/
H A Dcn10k_cpt.c31 void *lmtline = lf->lfs->lmt_info.base + (lf->slot * LMTLINE_SIZE); in cn10k_cpt_send_cmd()
51 struct otx2_lmt_info *lmt_info = &lfs->lmt_info; in cn10k_cpt_lmtst_free() local
53 if (!lmt_info->base) in cn10k_cpt_lmtst_free()
56 dma_free_attrs(&pdev->dev, lmt_info->size, in cn10k_cpt_lmtst_free()
57 lmt_info->base - lmt_info->align, in cn10k_cpt_lmtst_free()
58 lmt_info->iova - lmt_info->align, in cn10k_cpt_lmtst_free()
66 struct otx2_lmt_info *lmt_info = &lfs->lmt_info; in cn10k_cpt_lmtst_alloc() local
70 lmt_info->base = dma_alloc_attrs(&pdev->dev, size, &iova, GFP_KERNEL, in cn10k_cpt_lmtst_alloc()
72 if (!lmt_info->base) in cn10k_cpt_lmtst_alloc()
76 lmt_info->iova = align_iova; in cn10k_cpt_lmtst_alloc()
[all …]
H A Dotx2_cpt_mbox_common.c278 req->lmt_iova = lfs->lmt_info.iova; in otx2_cpt_lmtst_tbl_setup_msg()
H A Dotx2_cptlf.h120 struct otx2_lmt_info lmt_info; member
H A Dotx2_cptlf.c436 if (!lfs->lmt_info.base) in otx2_cptlf_init()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k.c47 struct otx2_lmt_info *lmt_info; in cn10k_lmtst_init() local
55 pfvf->hw.lmt_info = alloc_percpu(struct otx2_lmt_info); in cn10k_lmtst_init()
79 lmt_info = per_cpu_ptr(pfvf->hw.lmt_info, cpu); in cn10k_lmtst_init()
80 lmt_info->lmt_addr = ((u64)pfvf->hw.lmt_base + in cn10k_lmtst_init()
82 lmt_info->lmt_id = cpu * LMT_BURST_SIZE; in cn10k_lmtst_init()
159 struct otx2_lmt_info *lmt_info; in cn10k_sqe_flush() local
163 lmt_info = per_cpu_ptr(pfvf->hw.lmt_info, smp_processor_id()); in cn10k_sqe_flush()
168 val = (lmt_info->lmt_id & 0x7FF); in cn10k_sqe_flush()
175 memcpy((u64 *)lmt_info->lmt_addr, sq->sqe_base, size); in cn10k_sqe_flush()
H A Dcn10k_ipsec.c384 struct otx2_lmt_info *lmt_info; in cn10k_cpt_inst_flush() local
387 lmt_info = per_cpu_ptr(pf->hw.lmt_info, smp_processor_id()); in cn10k_cpt_inst_flush()
392 val = (lmt_info->lmt_id & 0x7FF); in cn10k_cpt_inst_flush()
399 memcpy((u64 *)lmt_info->lmt_addr, inst, size); in cn10k_cpt_inst_flush()
H A Dotx2_common.h278 struct otx2_lmt_info __percpu *lmt_info; member
784 struct otx2_lmt_info *lmt_info; in __cn10k_aura_freeptr() local
788 lmt_info = per_cpu_ptr(pfvf->hw.lmt_info, smp_processor_id()); in __cn10k_aura_freeptr()
791 val = (lmt_info->lmt_id & 0x7FF) | BIT_ULL(63); in __cn10k_aura_freeptr()
815 memcpy((u64 *)lmt_info->lmt_addr, ptrs, sizeof(u64) * num_ptrs); in __cn10k_aura_freeptr()
H A Drep.c829 if (priv->hw.lmt_info) in rvu_rep_probe()
830 free_percpu(priv->hw.lmt_info); in rvu_rep_probe()
850 if (priv->hw.lmt_info) in rvu_rep_remove()
851 free_percpu(priv->hw.lmt_info); in rvu_rep_remove()
H A Dotx2_vf.c799 free_percpu(vf->hw.lmt_info); in otx2vf_probe()
853 free_percpu(vf->hw.lmt_info); in otx2vf_remove()
H A Dotx2_pf.c3111 if (pf->hw.lmt_info) in otx2_init_rsrc()
3112 free_percpu(pf->hw.lmt_info); in otx2_init_rsrc()
3331 if (pf->hw.lmt_info) in otx2_probe()
3332 free_percpu(pf->hw.lmt_info); in otx2_probe()
3533 if (pf->hw.lmt_info) in otx2_remove()
3534 free_percpu(pf->hw.lmt_info); in otx2_remove()