Lines Matching refs:lfs

78 	struct otx2_cptlfs_info *lfs;  member
83 struct otx2_cptlfs_info *lfs; /* Ptr to cptlfs_info struct */ member
122 struct otx2_cptlfs_info *lfs) in otx2_cpt_free_instruction_queues() argument
127 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_free_instruction_queues()
128 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
130 dma_free_coherent(&lfs->pdev->dev, in otx2_cpt_free_instruction_queues()
140 struct otx2_cptlfs_info *lfs) in otx2_cpt_alloc_instruction_queues() argument
145 if (!lfs->lfs_num) in otx2_cpt_alloc_instruction_queues()
148 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_alloc_instruction_queues()
149 iq = &lfs->lf[i].iqueue; in otx2_cpt_alloc_instruction_queues()
154 iq->real_vaddr = dma_alloc_coherent(&lfs->pdev->dev, iq->size, in otx2_cpt_alloc_instruction_queues()
171 otx2_cpt_free_instruction_queues(lfs); in otx2_cpt_alloc_instruction_queues()
176 struct otx2_cptlfs_info *lfs) in otx2_cptlf_set_iqueues_base_addr() argument
181 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_iqueues_base_addr()
182 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr; in otx2_cptlf_set_iqueues_base_addr()
183 otx2_cpt_write64(lfs->reg_base, BLKADDR_CPT0, slot, in otx2_cptlf_set_iqueues_base_addr()
194 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_set_iqueue_size()
198 static inline void otx2_cptlf_set_iqueues_size(struct otx2_cptlfs_info *lfs) in otx2_cptlf_set_iqueues_size() argument
202 for (slot = 0; slot < lfs->lfs_num; slot++) in otx2_cptlf_set_iqueues_size()
203 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]); in otx2_cptlf_set_iqueues_size()
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()
225 dev_err(&lf->lfs->pdev->dev, in otx2_cptlf_do_disable_iqueue()
237 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
241 static inline void otx2_cptlf_disable_iqueues(struct otx2_cptlfs_info *lfs) in otx2_cptlf_disable_iqueues() argument
245 for (slot = 0; slot < lfs->lfs_num; slot++) in otx2_cptlf_disable_iqueues()
246 otx2_cptlf_do_disable_iqueue(&lfs->lf[slot]); in otx2_cptlf_disable_iqueues()
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()
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()
292 static inline void otx2_cptlf_enable_iqueues(struct otx2_cptlfs_info *lfs) in otx2_cptlf_enable_iqueues() argument
296 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_enable_iqueues()
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()
362 static inline bool otx2_cptlf_started(struct otx2_cptlfs_info *lfs) in otx2_cptlf_started() argument
364 return atomic_read(&lfs->state) == OTX2_CPTLF_STARTED; in otx2_cptlf_started()
367 int otx2_cptlf_init(struct otx2_cptlfs_info *lfs, u8 eng_grp_msk, int pri,
369 void otx2_cptlf_shutdown(struct otx2_cptlfs_info *lfs);
370 int otx2_cptlf_register_interrupts(struct otx2_cptlfs_info *lfs);
371 void otx2_cptlf_unregister_interrupts(struct otx2_cptlfs_info *lfs);
372 void otx2_cptlf_free_irqs_affinity(struct otx2_cptlfs_info *lfs);
373 int otx2_cptlf_set_irqs_affinity(struct otx2_cptlfs_info *lfs);