Lines Matching refs:cqp

238 	struct i40iw_cqp *cqp = &iwdev->cqp;  in i40iw_destroy_cqp()  local
241 dev->cqp_ops->cqp_destroy(dev->cqp); in i40iw_destroy_cqp()
245 i40iw_free_dma_mem(dev->hw, &cqp->sq); in i40iw_destroy_cqp()
246 kfree(cqp->scratch_array); in i40iw_destroy_cqp()
247 iwdev->cqp.scratch_array = NULL; in i40iw_destroy_cqp()
249 kfree(cqp->cqp_requests); in i40iw_destroy_cqp()
250 cqp->cqp_requests = NULL; in i40iw_destroy_cqp()
495 return (dev->cqp_misc_ops->static_hmc_pages_allocated(dev->cqp, 0, in i40iw_create_hmc_objs()
560 struct i40iw_cqp *cqp = &iwdev->cqp; in i40iw_create_cqp() local
564 cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), GFP_KERNEL); in i40iw_create_cqp()
565 if (!cqp->cqp_requests) in i40iw_create_cqp()
567 cqp->scratch_array = kcalloc(sqsize, sizeof(*cqp->scratch_array), GFP_KERNEL); in i40iw_create_cqp()
568 if (!cqp->scratch_array) { in i40iw_create_cqp()
569 kfree(cqp->cqp_requests); in i40iw_create_cqp()
572 dev->cqp = &cqp->sc_cqp; in i40iw_create_cqp()
573 dev->cqp->dev = dev; in i40iw_create_cqp()
575 status = i40iw_allocate_dma_mem(dev->hw, &cqp->sq, in i40iw_create_cqp()
584 dev->cqp->host_ctx_pa = mem.pa; in i40iw_create_cqp()
585 dev->cqp->host_ctx = mem.va; in i40iw_create_cqp()
589 cqp_init_info.sq = cqp->sq.va; in i40iw_create_cqp()
590 cqp_init_info.sq_pa = cqp->sq.pa; in i40iw_create_cqp()
595 cqp_init_info.scratch_array = cqp->scratch_array; in i40iw_create_cqp()
596 status = dev->cqp_ops->cqp_init(dev->cqp, &cqp_init_info); in i40iw_create_cqp()
601 status = dev->cqp_ops->cqp_create(dev->cqp, &maj_err, &min_err); in i40iw_create_cqp()
607 spin_lock_init(&cqp->req_lock); in i40iw_create_cqp()
608 INIT_LIST_HEAD(&cqp->cqp_avail_reqs); in i40iw_create_cqp()
609 INIT_LIST_HEAD(&cqp->cqp_pending_reqs); in i40iw_create_cqp()
612 init_waitqueue_head(&cqp->cqp_requests[i].waitq); in i40iw_create_cqp()
613 list_add_tail(&cqp->cqp_requests[i].list, &cqp->cqp_avail_reqs); in i40iw_create_cqp()
742 scratch = (uintptr_t)&iwdev->cqp.sc_cqp; in i40iw_create_ceq()
1042 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_del_macip_entry()
1055 cqp_info->in.u.del_local_mac_ipaddr_entry.cqp = &iwcqp->sc_cqp; in i40iw_del_macip_entry()
1075 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_add_mac_ipaddr_entry()
1094 cqp_info->in.u.add_local_mac_ipaddr_entry.cqp = &iwcqp->sc_cqp; in i40iw_add_mac_ipaddr_entry()
1114 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_alloc_local_mac_ipaddr_entry()
1131 cqp_info->in.u.alloc_local_mac_ipaddr_entry.cqp = &iwcqp->sc_cqp; in i40iw_alloc_local_mac_ipaddr_entry()