Lines Matching refs:slot

17 				      lf->slot, OTX2_CPT_LF_DONE_WAIT);  in cptlf_do_set_done_time_wait()
19 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_time_wait()
28 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_do_set_done_num_wait()
30 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_do_set_done_num_wait()
37 int slot; in cptlf_set_done_time_wait() local
39 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_time_wait()
40 cptlf_do_set_done_time_wait(&lfs->lf[slot], time_wait); in cptlf_set_done_time_wait()
45 int slot; in cptlf_set_done_num_wait() local
47 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_num_wait()
48 cptlf_do_set_done_num_wait(&lfs->lf[slot], num_wait); in cptlf_set_done_num_wait()
58 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_pri()
66 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_pri()
79 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_eng_grps_mask()
87 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_eng_grps_mask()
95 int slot, ret = 0; in cptlf_set_grp_and_pri() local
97 for (slot = 0; slot < lfs->lfs_num; slot++) { in cptlf_set_grp_and_pri()
98 ret = cptlf_set_pri(&lfs->lf[slot], pri); in cptlf_set_grp_and_pri()
102 ret = cptlf_set_eng_grps_mask(&lfs->lf[slot], eng_grp_mask); in cptlf_set_grp_and_pri()
113 int slot, ret = 0; in cptlf_set_ctx_ilen() local
115 for (slot = 0; slot < lfs->lfs_num; slot++) { in cptlf_set_ctx_ilen()
116 lf = &lfs->lf[slot]; in cptlf_set_ctx_ilen()
119 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_ctx_ilen()
127 CPT_AF_LFX_CTL(lf->slot), in cptlf_set_ctx_ilen()
167 int slot; in cptlf_set_misc_intrs() local
175 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_misc_intrs()
176 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, reg, in cptlf_set_misc_intrs()
184 int slot; in cptlf_set_done_intrs() local
186 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_done_intrs()
187 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, reg, 0x1); in cptlf_set_done_intrs()
194 irq_cnt.u = otx2_cpt_read64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_read_done_cnt()
207 lf->slot, OTX2_CPT_LF_MISC_INT); in cptlf_misc_intr_handler()
212 lf->slot); in cptlf_misc_intr_handler()
217 lf->slot); in cptlf_misc_intr_handler()
222 lf->slot); in cptlf_misc_intr_handler()
234 dev_err(dev, "Unhandled interrupt in CPT LF %d\n", lf->slot); in cptlf_misc_intr_handler()
239 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_misc_intr_handler()
255 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_done_intr_handler()
257 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_done_intr_handler()
260 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_done_intr_handler()
264 lf->slot); in cptlf_done_intr_handler()
379 int slot, offs; in otx2_cptlf_free_irqs_affinity() local
381 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_free_irqs_affinity()
384 lfs->lf[slot].msix_offset + in otx2_cptlf_free_irqs_affinity()
386 free_cpumask_var(lfs->lf[slot].affinity_mask); in otx2_cptlf_free_irqs_affinity()
394 int slot, offs, ret; in otx2_cptlf_set_irqs_affinity() local
396 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_irqs_affinity()
397 if (!zalloc_cpumask_var(&lf[slot].affinity_mask, GFP_KERNEL)) { in otx2_cptlf_set_irqs_affinity()
399 "cpumask allocation failed for LF %d", slot); in otx2_cptlf_set_irqs_affinity()
404 cpumask_set_cpu(cpumask_local_spread(slot, in otx2_cptlf_set_irqs_affinity()
406 lf[slot].affinity_mask); in otx2_cptlf_set_irqs_affinity()
410 lf[slot].msix_offset + offs), in otx2_cptlf_set_irqs_affinity()
411 lf[slot].affinity_mask); in otx2_cptlf_set_irqs_affinity()
427 int slot, ret; in otx2_cptlf_init() local
433 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_init()
434 lfs->lf[slot].lfs = lfs; in otx2_cptlf_init()
435 lfs->lf[slot].slot = slot; in otx2_cptlf_init()
437 lfs->lf[slot].lmtline = lfs->lmt_base + in otx2_cptlf_init()
438 (slot * LMTLINE_SIZE); in otx2_cptlf_init()
440 lfs->lf[slot].lmtline = lfs->reg_base + in otx2_cptlf_init()
441 OTX2_CPT_RVU_FUNC_ADDR_S(BLKADDR_LMT, slot, in otx2_cptlf_init()
444 lfs->lf[slot].ioreg = lfs->reg_base + in otx2_cptlf_init()
445 OTX2_CPT_RVU_FUNC_ADDR_S(lfs->blkaddr, slot, in otx2_cptlf_init()