Lines Matching full: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()
141 int slot; in cptlf_set_misc_intrs() local
149 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_set_misc_intrs()
150 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, reg, in cptlf_set_misc_intrs()
156 int slot; in cptlf_enable_intrs() local
159 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_enable_intrs()
160 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, in cptlf_enable_intrs()
168 int slot; in cptlf_disable_intrs() local
170 for (slot = 0; slot < lfs->lfs_num; slot++) in cptlf_disable_intrs()
171 otx2_cpt_write64(lfs->reg_base, lfs->blkaddr, slot, in cptlf_disable_intrs()
180 irq_cnt.u = otx2_cpt_read64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_read_done_cnt()
193 lf->slot, OTX2_CPT_LF_MISC_INT); in cptlf_misc_intr_handler()
198 lf->slot); in cptlf_misc_intr_handler()
203 lf->slot); in cptlf_misc_intr_handler()
208 lf->slot); in cptlf_misc_intr_handler()
220 dev_err(dev, "Unhandled interrupt in CPT LF %d\n", lf->slot); in cptlf_misc_intr_handler()
225 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_misc_intr_handler()
241 lf->slot, OTX2_CPT_LF_DONE_WAIT); in cptlf_done_intr_handler()
243 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_done_intr_handler()
246 otx2_cpt_write64(lf->lfs->reg_base, lf->lfs->blkaddr, lf->slot, in cptlf_done_intr_handler()
250 lf->slot); in cptlf_done_intr_handler()
330 int slot, offs; in otx2_cptlf_free_irqs_affinity() local
332 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_free_irqs_affinity()
335 lfs->lf[slot].msix_offset + in otx2_cptlf_free_irqs_affinity()
337 free_cpumask_var(lfs->lf[slot].affinity_mask); in otx2_cptlf_free_irqs_affinity()
345 int slot, offs, ret; in otx2_cptlf_set_irqs_affinity() local
347 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_set_irqs_affinity()
348 if (!zalloc_cpumask_var(&lf[slot].affinity_mask, GFP_KERNEL)) { in otx2_cptlf_set_irqs_affinity()
350 "cpumask allocation failed for LF %d", slot); in otx2_cptlf_set_irqs_affinity()
355 cpumask_set_cpu(cpumask_local_spread(slot, in otx2_cptlf_set_irqs_affinity()
357 lf[slot].affinity_mask); in otx2_cptlf_set_irqs_affinity()
361 lf[slot].msix_offset + offs), in otx2_cptlf_set_irqs_affinity()
362 lf[slot].affinity_mask); in otx2_cptlf_set_irqs_affinity()
378 int slot, ret; in otx2_cptlf_init() local
384 for (slot = 0; slot < lfs->lfs_num; slot++) { in otx2_cptlf_init()
385 lfs->lf[slot].lfs = lfs; in otx2_cptlf_init()
386 lfs->lf[slot].slot = slot; in otx2_cptlf_init()
388 lfs->lf[slot].lmtline = lfs->lmt_base + in otx2_cptlf_init()
389 (slot * LMTLINE_SIZE); in otx2_cptlf_init()
391 lfs->lf[slot].lmtline = lfs->reg_base + in otx2_cptlf_init()
392 OTX2_CPT_RVU_FUNC_ADDR_S(BLKADDR_LMT, slot, in otx2_cptlf_init()
395 lfs->lf[slot].ioreg = lfs->reg_base + in otx2_cptlf_init()
396 OTX2_CPT_RVU_FUNC_ADDR_S(lfs->blkaddr, slot, in otx2_cptlf_init()