Lines Matching refs:lf

89 			 struct otx2_cptlf_info *lf);
100 struct otx2_cptlf_info lf[OTX2_CPT_MAX_LFS_NUM]; member
118 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
139 iq = &lfs->lf[i].iqueue; in otx2_cpt_alloc_instruction_queues()
172 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr; in otx2_cptlf_set_iqueues_base_addr()
178 static inline void otx2_cptlf_do_set_iqueue_size(struct otx2_cptlf_info *lf) in otx2_cptlf_do_set_iqueue_size() argument
183 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_set_iqueue_size()
192 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]); in otx2_cptlf_set_iqueues_size()
195 static inline void otx2_cptlf_do_disable_iqueue(struct otx2_cptlf_info *lf) in otx2_cptlf_do_disable_iqueue() argument
202 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
207 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, in otx2_cptlf_do_disable_iqueue()
208 lf->slot, OTX2_CPT_LF_INPROG); in otx2_cptlf_do_disable_iqueue()
214 dev_err(&lf->lfs->pdev->dev, in otx2_cptlf_do_disable_iqueue()
215 "Error LF %d is still busy.\n", lf->slot); in otx2_cptlf_do_disable_iqueue()
226 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
235 otx2_cptlf_do_disable_iqueue(&lfs->lf[slot]); in otx2_cptlf_disable_iqueues()
238 static inline void otx2_cptlf_set_iqueue_enq(struct otx2_cptlf_info *lf, in otx2_cptlf_set_iqueue_enq() argument
243 lf_ctl.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_enq()
248 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_enq()
252 static inline void otx2_cptlf_enable_iqueue_enq(struct otx2_cptlf_info *lf) in otx2_cptlf_enable_iqueue_enq() argument
254 otx2_cptlf_set_iqueue_enq(lf, true); in otx2_cptlf_enable_iqueue_enq()
257 static inline void otx2_cptlf_set_iqueue_exec(struct otx2_cptlf_info *lf, in otx2_cptlf_set_iqueue_exec() argument
262 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_exec()
267 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_exec()
271 static inline void otx2_cptlf_enable_iqueue_exec(struct otx2_cptlf_info *lf) in otx2_cptlf_enable_iqueue_exec() argument
273 otx2_cptlf_set_iqueue_exec(lf, true); in otx2_cptlf_enable_iqueue_exec()
276 static inline void otx2_cptlf_disable_iqueue_exec(struct otx2_cptlf_info *lf) in otx2_cptlf_disable_iqueue_exec() argument
278 otx2_cptlf_set_iqueue_exec(lf, false); in otx2_cptlf_disable_iqueue_exec()
286 otx2_cptlf_enable_iqueue_exec(&lfs->lf[slot]); in otx2_cptlf_enable_iqueues()
287 otx2_cptlf_enable_iqueue_enq(&lfs->lf[slot]); in otx2_cptlf_enable_iqueues()
313 u32 insts_num, struct otx2_cptlf_info *lf) in otx2_cpt_send_cmd() argument
315 void __iomem *lmtline = lf->lmtline; in otx2_cpt_send_cmd()
346 ret = otx2_lmt_flush(lf->ioreg); in otx2_cpt_send_cmd()