Lines Matching refs:cqp

593 	struct irdma_cqp *cqp = &rf->cqp;  in irdma_destroy_cqp()  local
596 status = irdma_sc_cqp_destroy(dev->cqp); in irdma_destroy_cqp()
601 dma_free_coherent(dev->hw->device, cqp->sq.size, cqp->sq.va, in irdma_destroy_cqp()
602 cqp->sq.pa); in irdma_destroy_cqp()
603 cqp->sq.va = NULL; in irdma_destroy_cqp()
604 kfree(cqp->scratch_array); in irdma_destroy_cqp()
605 cqp->scratch_array = NULL; in irdma_destroy_cqp()
606 kfree(cqp->cqp_requests); in irdma_destroy_cqp()
607 cqp->cqp_requests = NULL; in irdma_destroy_cqp()
870 return irdma_sc_static_hmc_pages_allocated(dev->cqp, 0, dev->hmc_fn_id, in irdma_create_hmc_objs()
933 struct irdma_cqp *cqp = &rf->cqp; in irdma_create_cqp() local
937 cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), GFP_KERNEL); in irdma_create_cqp()
938 if (!cqp->cqp_requests) in irdma_create_cqp()
941 cqp->scratch_array = kcalloc(sqsize, sizeof(*cqp->scratch_array), GFP_KERNEL); in irdma_create_cqp()
942 if (!cqp->scratch_array) { in irdma_create_cqp()
947 dev->cqp = &cqp->sc_cqp; in irdma_create_cqp()
948 dev->cqp->dev = dev; in irdma_create_cqp()
949 cqp->sq.size = ALIGN(sizeof(struct irdma_cqp_sq_wqe) * sqsize, in irdma_create_cqp()
951 cqp->sq.va = dma_alloc_coherent(dev->hw->device, cqp->sq.size, in irdma_create_cqp()
952 &cqp->sq.pa, GFP_KERNEL); in irdma_create_cqp()
953 if (!cqp->sq.va) { in irdma_create_cqp()
963 dev->cqp->host_ctx_pa = mem.pa; in irdma_create_cqp()
964 dev->cqp->host_ctx = mem.va; in irdma_create_cqp()
968 cqp_init_info.sq = cqp->sq.va; in irdma_create_cqp()
969 cqp_init_info.sq_pa = cqp->sq.pa; in irdma_create_cqp()
973 cqp_init_info.scratch_array = cqp->scratch_array; in irdma_create_cqp()
984 status = irdma_sc_cqp_init(dev->cqp, &cqp_init_info); in irdma_create_cqp()
990 spin_lock_init(&cqp->req_lock); in irdma_create_cqp()
991 spin_lock_init(&cqp->compl_lock); in irdma_create_cqp()
993 status = irdma_sc_cqp_create(dev->cqp, &maj_err, &min_err); in irdma_create_cqp()
1001 INIT_LIST_HEAD(&cqp->cqp_avail_reqs); in irdma_create_cqp()
1002 INIT_LIST_HEAD(&cqp->cqp_pending_reqs); in irdma_create_cqp()
1006 init_waitqueue_head(&cqp->cqp_requests[i].waitq); in irdma_create_cqp()
1007 list_add_tail(&cqp->cqp_requests[i].list, &cqp->cqp_avail_reqs); in irdma_create_cqp()
1009 init_waitqueue_head(&cqp->remove_wq); in irdma_create_cqp()
1013 dma_free_coherent(dev->hw->device, cqp->sq.size, in irdma_create_cqp()
1014 cqp->sq.va, cqp->sq.pa); in irdma_create_cqp()
1015 cqp->sq.va = NULL; in irdma_create_cqp()
1017 kfree(cqp->scratch_array); in irdma_create_cqp()
1018 cqp->scratch_array = NULL; in irdma_create_cqp()
1020 kfree(cqp->cqp_requests); in irdma_create_cqp()
1021 cqp->cqp_requests = NULL; in irdma_create_cqp()
2086 spin_lock_irqsave(&rf->cqp.compl_lock, flags); in irdma_cqp_ce_handler()
2088 spin_unlock_irqrestore(&rf->cqp.compl_lock, flags); in irdma_cqp_ce_handler()
2108 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_cqp_ce_handler()
2112 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_cqp_ce_handler()
2198 struct irdma_cqp *iwcqp = &rf->cqp; in irdma_del_local_mac_entry()
2209 cqp_info->in.u.del_local_mac_entry.cqp = &iwcqp->sc_cqp; in irdma_del_local_mac_entry()
2228 struct irdma_cqp *iwcqp = &rf->cqp; in irdma_add_local_mac_entry()
2244 cqp_info->in.u.add_local_mac_entry.cqp = &iwcqp->sc_cqp; in irdma_add_local_mac_entry()
2264 struct irdma_cqp *iwcqp = &rf->cqp; in irdma_alloc_local_mac_entry()
2276 cqp_info->in.u.alloc_local_mac_entry.cqp = &iwcqp->sc_cqp; in irdma_alloc_local_mac_entry()
2301 cqp_request = irdma_alloc_and_get_cqp_request(&iwdev->rf->cqp, add_port); in irdma_cqp_manage_apbvt_cmd()
2312 cqp_info->in.u.manage_apbvt_entry.cqp = &iwdev->rf->cqp.sc_cqp; in irdma_cqp_manage_apbvt_cmd()
2318 irdma_put_cqp_request(&iwdev->rf->cqp, cqp_request); in irdma_cqp_manage_apbvt_cmd()
2408 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, false); in irdma_manage_arp_cache()
2422 cqp_info->in.u.add_arp_cache_entry.cqp = &rf->cqp.sc_cqp; in irdma_manage_arp_cache()
2427 cqp_info->in.u.del_arp_cache_entry.cqp = &rf->cqp.sc_cqp; in irdma_manage_arp_cache()
2433 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_manage_arp_cache()
2463 struct irdma_cqp *iwcqp = &iwdev->rf->cqp; in irdma_manage_qhash()
2528 cqp_info->in.u.manage_qhash_table_entry.cqp = &iwdev->rf->cqp.sc_cqp; in irdma_manage_qhash()
2594 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, wait); in irdma_hw_flush_wqes()
2611 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_hw_flush_wqes()
2642 new_req = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_hw_flush_wqes()
2664 irdma_put_cqp_request(&rf->cqp, new_req); in irdma_hw_flush_wqes()
2682 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_hw_flush_wqes()
2701 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, wait); in irdma_gen_ae()
2714 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_gen_ae()