Lines Matching refs:lf

99 			 struct otx2_cptlf_info *lf);
110 struct otx2_cptlf_info lf[OTX2_CPT_MAX_LFS_NUM];
128 iq = &lfs->lf[i].iqueue;
149 iq = &lfs->lf[i].iqueue;
182 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr;
188 static inline void otx2_cptlf_do_set_iqueue_size(struct otx2_cptlf_info *lf)
194 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot,
203 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]);
206 static inline void otx2_cptlf_do_disable_iqueue(struct otx2_cptlf_info *lf)
210 u8 blkaddr = lf->lfs->blkaddr;
214 otx2_cpt_write64(lf->lfs->reg_base, blkaddr, lf->slot,
219 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, blkaddr,
220 lf->slot, OTX2_CPT_LF_INPROG);
226 dev_err(&lf->lfs->pdev->dev,
227 "Error LF %d is still busy.\n", lf->slot);
238 otx2_cpt_write64(lf->lfs->reg_base, blkaddr, lf->slot,
247 otx2_cptlf_do_disable_iqueue(&lfs->lf[slot]);
250 static inline void otx2_cptlf_set_iqueue_enq(struct otx2_cptlf_info *lf,
253 u8 blkaddr = lf->lfs->blkaddr;
256 lf_ctl.u = otx2_cpt_read64(lf->lfs->reg_base, blkaddr, lf->slot,
261 otx2_cpt_write64(lf->lfs->reg_base, blkaddr, lf->slot,
265 static inline void otx2_cptlf_enable_iqueue_enq(struct otx2_cptlf_info *lf)
267 otx2_cptlf_set_iqueue_enq(lf, true);
270 static inline void otx2_cptlf_set_iqueue_exec(struct otx2_cptlf_info *lf,
274 u8 blkaddr = lf->lfs->blkaddr;
276 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, blkaddr, lf->slot,
281 otx2_cpt_write64(lf->lfs->reg_base, blkaddr, lf->slot,
285 static inline void otx2_cptlf_enable_iqueue_exec(struct otx2_cptlf_info *lf)
287 otx2_cptlf_set_iqueue_exec(lf, true);
290 static inline void otx2_cptlf_disable_iqueue_exec(struct otx2_cptlf_info *lf)
292 otx2_cptlf_set_iqueue_exec(lf, false);
300 otx2_cptlf_enable_iqueue_exec(&lfs->lf[slot]);
301 otx2_cptlf_enable_iqueue_enq(&lfs->lf[slot]);
327 u32 insts_num, struct otx2_cptlf_info *lf)
329 void __iomem *lmtline = lf->lmtline;
360 ret = otx2_lmt_flush(lf->ioreg);