Lines Matching refs:p_pool
70 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc() local
72 sizeof(*p_pool)); in ecore_ptt_pool_alloc()
75 if (!p_pool) in ecore_ptt_pool_alloc()
78 OSAL_LIST_INIT(&p_pool->free_list); in ecore_ptt_pool_alloc()
80 p_pool->ptts[i].idx = i; in ecore_ptt_pool_alloc()
81 p_pool->ptts[i].pxp.offset = ECORE_BAR_INVALID_OFFSET; in ecore_ptt_pool_alloc()
82 p_pool->ptts[i].pxp.pretend.control = 0; in ecore_ptt_pool_alloc()
83 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in ecore_ptt_pool_alloc()
89 OSAL_LIST_PUSH_HEAD(&p_pool->ptts[i].list_entry, in ecore_ptt_pool_alloc()
90 &p_pool->free_list); in ecore_ptt_pool_alloc()
93 p_hwfn->p_ptt_pool = p_pool; in ecore_ptt_pool_alloc()
94 OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_pool->lock); in ecore_ptt_pool_alloc()
95 OSAL_SPIN_LOCK_INIT(&p_pool->lock); in ecore_ptt_pool_alloc()