Lines Matching refs:p_ptt_pool
66 p_hwfn->p_ptt_pool = p_pool; in qed_ptt_pool_alloc()
78 p_ptt = &p_hwfn->p_ptt_pool->ptts[i]; in qed_ptt_invalidate()
85 kfree(p_hwfn->p_ptt_pool); in qed_ptt_pool_free()
86 p_hwfn->p_ptt_pool = NULL; in qed_ptt_pool_free()
106 spin_lock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_acquire_context()
108 if (!list_empty(&p_hwfn->p_ptt_pool->free_list)) { in qed_ptt_acquire_context()
109 p_ptt = list_first_entry(&p_hwfn->p_ptt_pool->free_list, in qed_ptt_acquire_context()
113 spin_unlock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_acquire_context()
120 spin_unlock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_acquire_context()
135 spin_lock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_release()
136 list_add(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list); in qed_ptt_release()
137 spin_unlock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_release()
214 return &p_hwfn->p_ptt_pool->ptts[ptt_idx]; in qed_get_reserved_ptt()