Lines Matching refs:p_pool
46 struct qed_ptt_pool *p_pool = kmalloc(sizeof(*p_pool), GFP_KERNEL); in qed_ptt_pool_alloc() local
49 if (!p_pool) in qed_ptt_pool_alloc()
52 INIT_LIST_HEAD(&p_pool->free_list); in qed_ptt_pool_alloc()
54 p_pool->ptts[i].idx = i; in qed_ptt_pool_alloc()
55 p_pool->ptts[i].pxp.offset = QED_BAR_INVALID_OFFSET; in qed_ptt_pool_alloc()
56 p_pool->ptts[i].pxp.pretend.control = 0; in qed_ptt_pool_alloc()
57 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in qed_ptt_pool_alloc()
59 list_add(&p_pool->ptts[i].list_entry, in qed_ptt_pool_alloc()
60 &p_pool->free_list); in qed_ptt_pool_alloc()
63 p_hwfn->p_ptt_pool = p_pool; in qed_ptt_pool_alloc()
64 spin_lock_init(&p_pool->lock); in qed_ptt_pool_alloc()