Lines Matching refs:nesqp

264 	struct nes_qp *nesqp;  in nes_add_ref()  local
266 nesqp = to_nesqp(ibqp); in nes_add_ref()
268 ibqp->qp_num, atomic_read(&nesqp->refcount)); in nes_add_ref()
269 atomic_inc(&nesqp->refcount); in nes_add_ref()
275 struct nes_qp *nesqp = cqp_request->cqp_callback_pointer; in nes_cqp_rem_ref_callback() local
282 if (nesqp->pbl_vbase) { in nes_cqp_rem_ref_callback()
283 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
284 nesqp->hwqp.q2_vbase, nesqp->hwqp.q2_pbase); in nes_cqp_rem_ref_callback()
288 pci_free_consistent(nesdev->pcidev, 256, nesqp->pbl_vbase, nesqp->pbl_pbase); in nes_cqp_rem_ref_callback()
289 nesqp->pbl_vbase = NULL; in nes_cqp_rem_ref_callback()
292 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
293 nesqp->hwqp.sq_vbase, nesqp->hwqp.sq_pbase); in nes_cqp_rem_ref_callback()
295 nes_free_resource(nesadapter, nesadapter->allocated_qps, nesqp->hwqp.qp_id); in nes_cqp_rem_ref_callback()
297 nesadapter->qp_table[nesqp->hwqp.qp_id-NES_FIRST_QPN] = NULL; in nes_cqp_rem_ref_callback()
298 kfree(nesqp->allocated_buffer); in nes_cqp_rem_ref_callback()
308 struct nes_qp *nesqp; in nes_rem_ref() local
315 nesqp = to_nesqp(ibqp); in nes_rem_ref()
317 if (atomic_read(&nesqp->refcount) == 0) { in nes_rem_ref()
319 __func__, ibqp->qp_num, nesqp->last_aeq); in nes_rem_ref()
323 if (atomic_dec_and_test(&nesqp->refcount)) { in nes_rem_ref()
333 cqp_request->cqp_callback_pointer = nesqp; in nes_rem_ref()
339 if (nesqp->hte_added) { in nes_rem_ref()
341 nesqp->hte_added = 0; in nes_rem_ref()
344 set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_WQE_ID_IDX, nesqp->hwqp.qp_id); in nes_rem_ref()
345 u64temp = (u64)nesqp->nesqp_context_pbase; in nes_rem_ref()