Lines Matching refs:QM_EQCR_SIZE
175 #define QM_EQCR_SIZE 8 macro
392 #define EQCR_CARRY (uintptr_t)(QM_EQCR_SIZE << EQCR_SHIFT)
407 return ((uintptr_t)e >> EQCR_SHIFT) & (QM_EQCR_SIZE - 1); in eqcr_ptr2idx()
431 eqcr->ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); in qm_eqcr_init()
433 pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); in qm_eqcr_init()
435 eqcr->vbit = (qm_in(portal, QM_REG_EQCR_PI_CINH) & QM_EQCR_SIZE) ? in qm_eqcr_init()
437 eqcr->available = QM_EQCR_SIZE - 1 - in qm_eqcr_init()
438 dpaa_cyc_diff(QM_EQCR_SIZE, eqcr->ci, pi); in qm_eqcr_init()
455 u8 pi = qm_in(portal, QM_REG_EQCR_PI_CINH) & (QM_EQCR_SIZE - 1); in qm_eqcr_finish()
456 u8 ci = qm_in(portal, QM_REG_EQCR_CI_CINH) & (QM_EQCR_SIZE - 1); in qm_eqcr_finish()
493 (QM_EQCR_SIZE - 1); in qm_eqcr_start_stash()
494 diff = dpaa_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); in qm_eqcr_start_stash()
541 eqcr->ci = qm_ce_in(portal, QM_CL_EQCR_CI_CENA) & (QM_EQCR_SIZE - 1); in qm_eqcr_cce_update()
543 diff = dpaa_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); in qm_eqcr_cce_update()
567 return QM_EQCR_SIZE - 1 - eqcr->available; in qm_eqcr_get_fill()