Lines Matching refs:lfs

68 	struct otx2_cptlfs_info *lfs;  member
73 struct otx2_cptlfs_info *lfs; /* Ptr to cptlfs_info struct */ member
112 struct otx2_cptlfs_info *lfs) in otx2_cpt_free_instruction_queues() argument
117 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_free_instruction_queues()
118 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
120 dma_free_coherent(&lfs->pdev->dev, in otx2_cpt_free_instruction_queues()
130 struct otx2_cptlfs_info *lfs) in otx2_cpt_alloc_instruction_queues() argument
135 if (!lfs->lfs_num) in otx2_cpt_alloc_instruction_queues()
138 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_alloc_instruction_queues()
139 iq = &lfs->lf[i].iqueue; in otx2_cpt_alloc_instruction_queues()
144 iq->real_vaddr = dma_alloc_coherent(&lfs->pdev->dev, iq->size, in otx2_cpt_alloc_instruction_queues()
161 otx2_cpt_free_instruction_queues(lfs); in otx2_cpt_alloc_instruction_queues()
166 struct otx2_cptlfs_info *lfs) in otx2_cptlf_set_iqueues_base_addr() argument
171 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_iqueues_base_addr()
172 lf_q_base.u = lfs->lf[slot].iqueue.dma_addr; in otx2_cptlf_set_iqueues_base_addr()
173 otx2_cpt_write64(lfs->reg_base, BLKADDR_CPT0, slot, in otx2_cptlf_set_iqueues_base_addr()
183 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_set_iqueue_size()
187 static inline void otx2_cptlf_set_iqueues_size(struct otx2_cptlfs_info *lfs) in otx2_cptlf_set_iqueues_size() argument
191 for (slot = 0; slot < lfs->lfs_num; slot++) in otx2_cptlf_set_iqueues_size()
192 otx2_cptlf_do_set_iqueue_size(&lfs->lf[slot]); in otx2_cptlf_set_iqueues_size()
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()
214 dev_err(&lf->lfs->pdev->dev, in otx2_cptlf_do_disable_iqueue()
226 otx2_cpt_write64(lf->lfs->reg_base, BLKADDR_CPT0, lf->slot, in otx2_cptlf_do_disable_iqueue()
230 static inline void otx2_cptlf_disable_iqueues(struct otx2_cptlfs_info *lfs) in otx2_cptlf_disable_iqueues() argument
234 for (slot = 0; slot < lfs->lfs_num; slot++) in otx2_cptlf_disable_iqueues()
235 otx2_cptlf_do_disable_iqueue(&lfs->lf[slot]); in otx2_cptlf_disable_iqueues()
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()
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()
281 static inline void otx2_cptlf_enable_iqueues(struct otx2_cptlfs_info *lfs) in otx2_cptlf_enable_iqueues() argument
285 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_enable_iqueues()
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()
351 static inline bool otx2_cptlf_started(struct otx2_cptlfs_info *lfs) in otx2_cptlf_started() argument
353 return atomic_read(&lfs->state) == OTX2_CPTLF_STARTED; in otx2_cptlf_started()
356 int otx2_cptlf_init(struct otx2_cptlfs_info *lfs, u8 eng_grp_msk, int pri,
358 void otx2_cptlf_shutdown(struct otx2_cptlfs_info *lfs);
359 int otx2_cptlf_register_interrupts(struct otx2_cptlfs_info *lfs);
360 void otx2_cptlf_unregister_interrupts(struct otx2_cptlfs_info *lfs);
361 void otx2_cptlf_free_irqs_affinity(struct otx2_cptlfs_info *lfs);
362 int otx2_cptlf_set_irqs_affinity(struct otx2_cptlfs_info *lfs);