Lines Matching refs:lf

99 			 struct otx2_cptlf_info *lf);
110 struct otx2_cptlf_info lf[OTX2_CPT_MAX_LFS_NUM]; member
128 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
149 iq = &lfs->lf[i].iqueue; in otx2_cpt_alloc_instruction_queues()
182 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr; in otx2_cptlf_set_iqueues_base_addr()
188 static inline void otx2_cptlf_do_set_iqueue_size(struct otx2_cptlf_info *lf) in otx2_cptlf_do_set_iqueue_size() argument
194 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_set_iqueue_size()
203 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]); in otx2_cptlf_set_iqueues_size()
206 static inline void otx2_cptlf_do_disable_iqueue(struct otx2_cptlf_info *lf) in otx2_cptlf_do_disable_iqueue() argument
213 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
218 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, in otx2_cptlf_do_disable_iqueue()
219 lf->slot, OTX2_CPT_LF_INPROG); in otx2_cptlf_do_disable_iqueue()
225 dev_err(&lf->lfs->pdev->dev, in otx2_cptlf_do_disable_iqueue()
226 "Error LF %d is still busy.\n", lf->slot); in otx2_cptlf_do_disable_iqueue()
237 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
246 otx2_cptlf_do_disable_iqueue(&lfs->lf[slot]); in otx2_cptlf_disable_iqueues()
249 static inline void otx2_cptlf_set_iqueue_enq(struct otx2_cptlf_info *lf, in otx2_cptlf_set_iqueue_enq() argument
254 lf_ctl.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_enq()
259 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_enq()
263 static inline void otx2_cptlf_enable_iqueue_enq(struct otx2_cptlf_info *lf) in otx2_cptlf_enable_iqueue_enq() argument
265 otx2_cptlf_set_iqueue_enq(lf, true); in otx2_cptlf_enable_iqueue_enq()
268 static inline void otx2_cptlf_set_iqueue_exec(struct otx2_cptlf_info *lf, in otx2_cptlf_set_iqueue_exec() argument
273 lf_inprog.u = otx2_cpt_read64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_exec()
278 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_set_iqueue_exec()
282 static inline void otx2_cptlf_enable_iqueue_exec(struct otx2_cptlf_info *lf) in otx2_cptlf_enable_iqueue_exec() argument
284 otx2_cptlf_set_iqueue_exec(lf, true); in otx2_cptlf_enable_iqueue_exec()
287 static inline void otx2_cptlf_disable_iqueue_exec(struct otx2_cptlf_info *lf) in otx2_cptlf_disable_iqueue_exec() argument
289 otx2_cptlf_set_iqueue_exec(lf, false); in otx2_cptlf_disable_iqueue_exec()
297 otx2_cptlf_enable_iqueue_exec(&lfs->lf[slot]); in otx2_cptlf_enable_iqueues()
298 otx2_cptlf_enable_iqueue_enq(&lfs->lf[slot]); in otx2_cptlf_enable_iqueues()
324 u32 insts_num, struct otx2_cptlf_info *lf) in otx2_cpt_send_cmd() argument
326 void __iomem *lmtline = lf->lmtline; in otx2_cpt_send_cmd()
357 ret = otx2_lmt_flush(lf->ioreg); in otx2_cpt_send_cmd()