Home
last modified time | relevance | path

Searched refs:cqp (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.10/drivers/infiniband/hw/i40iw/
Di40iw_ctrl.c75 static inline void i40iw_get_cqp_reg_info(struct i40iw_sc_cqp *cqp, in i40iw_get_cqp_reg_info() argument
80 if (cqp->dev->is_pf) { in i40iw_get_cqp_reg_info()
81 *val = i40iw_rd32(cqp->dev->hw, I40E_PFPE_CQPTAIL); in i40iw_get_cqp_reg_info()
85 *val = i40iw_rd32(cqp->dev->hw, I40E_VFPE_CQPTAIL1); in i40iw_get_cqp_reg_info()
98 struct i40iw_sc_cqp *cqp, in i40iw_cqp_poll_registers() argument
107 i40iw_get_cqp_reg_info(cqp, &val, &newtail, &error); in i40iw_cqp_poll_registers()
109 error = (cqp->dev->is_pf) ? in i40iw_cqp_poll_registers()
110 i40iw_rd32(cqp->dev->hw, I40E_PFPE_CQPERRCODES) : in i40iw_cqp_poll_registers()
111 i40iw_rd32(cqp->dev->hw, I40E_VFPE_CQPERRCODES1); in i40iw_cqp_poll_registers()
116 I40IW_RING_MOVE_TAIL(cqp->sq_ring); in i40iw_cqp_poll_registers()
[all …]
Di40iw_utils.c360 struct i40iw_cqp_request *i40iw_get_cqp_request(struct i40iw_cqp *cqp, bool wait) in i40iw_get_cqp_request() argument
365 spin_lock_irqsave(&cqp->req_lock, flags); in i40iw_get_cqp_request()
366 if (!list_empty(&cqp->cqp_avail_reqs)) { in i40iw_get_cqp_request()
367 cqp_request = list_entry(cqp->cqp_avail_reqs.next, in i40iw_get_cqp_request()
371 spin_unlock_irqrestore(&cqp->req_lock, flags); in i40iw_get_cqp_request()
399 void i40iw_free_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request) in i40iw_free_cqp_request() argument
401 struct i40iw_device *iwdev = container_of(cqp, struct i40iw_device, cqp); in i40iw_free_cqp_request()
411 spin_lock_irqsave(&cqp->req_lock, flags); in i40iw_free_cqp_request()
412 list_add_tail(&cqp_request->list, &cqp->cqp_avail_reqs); in i40iw_free_cqp_request()
413 spin_unlock_irqrestore(&cqp->req_lock, flags); in i40iw_free_cqp_request()
[all …]
Di40iw_vf.c51 enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp, in i40iw_manage_vf_pble_bp() argument
59 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, scratch); in i40iw_manage_vf_pble_bp()
70 LS_64(cqp->polarity, I40IW_CQPSQ_WQEVALID); in i40iw_manage_vf_pble_bp()
76 i40iw_debug_buf(cqp->dev, I40IW_DEBUG_WQE, "MANAGE VF_PBLE_BP WQE", wqe, I40IW_CQP_WQE_SIZE * 8); in i40iw_manage_vf_pble_bp()
79 i40iw_sc_cqp_post_sq(cqp); in i40iw_manage_vf_pble_bp()
Di40iw_main.c238 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()
[all …]
Di40iw_hw.c148 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_cqp_ce_handler()
152 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_cqp_ce_handler()
452 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, add_port); in i40iw_cqp_manage_abvpt_cmd()
465 cqp_info->in.u.manage_apbvt_entry.cqp = &iwdev->cqp.sc_cqp; in i40iw_cqp_manage_abvpt_cmd()
538 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, false); in i40iw_manage_arp_cache()
551 cqp_info->in.u.add_arp_cache_entry.cqp = &iwdev->cqp.sc_cqp; in i40iw_manage_arp_cache()
555 cqp_info->in.u.del_arp_cache_entry.cqp = &iwdev->cqp.sc_cqp; in i40iw_manage_arp_cache()
559 cqp_info->in.u.add_arp_cache_entry.cqp = &iwdev->cqp.sc_cqp; in i40iw_manage_arp_cache()
597 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_manage_qhash()
651 cqp_info->in.u.manage_qhash_table_entry.cqp = &iwdev->cqp.sc_cqp; in i40iw_manage_qhash()
[all …]
Di40iw_p.h52 void i40iw_sc_cqp_post_sq(struct i40iw_sc_cqp *cqp);
54 u64 *i40iw_sc_cqp_get_next_send_wqe(struct i40iw_sc_cqp *cqp, u64 scratch);
96 enum i40iw_status_code i40iw_sc_suspend_qp(struct i40iw_sc_cqp *cqp,
99 enum i40iw_status_code i40iw_sc_resume_qp(struct i40iw_sc_cqp *cqp,
102 enum i40iw_status_code i40iw_sc_static_hmc_pages_allocated(struct i40iw_sc_cqp *cqp,
Di40iw_type.h492 struct i40iw_sc_cqp *cqp; member
566 struct i40iw_sc_cqp *cqp; member
1226 struct i40iw_sc_cqp *cqp; member
1232 struct i40iw_sc_cqp *cqp; member
1238 struct i40iw_sc_cqp *cqp; member
1245 struct i40iw_sc_cqp *cqp; member
1251 struct i40iw_sc_cqp *cqp; member
1257 struct i40iw_sc_cqp *cqp; member
1269 struct i40iw_sc_cqp *cqp; member
1312 struct i40iw_sc_cqp *cqp; member
[all …]
Di40iw_puda.c518 struct i40iw_sc_cqp *cqp; in i40iw_puda_qp_wqe() local
524 cqp = dev->cqp; in i40iw_puda_qp_wqe()
525 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, 0); in i40iw_puda_qp_wqe()
536 LS_64(cqp->polarity, I40IW_CQPSQ_WQEVALID); in i40iw_puda_qp_wqe()
540 i40iw_debug_buf(cqp->dev, I40IW_DEBUG_PUDA, "PUDA CQE", wqe, 32); in i40iw_puda_qp_wqe()
541 i40iw_sc_cqp_post_sq(cqp); in i40iw_puda_qp_wqe()
542 status = dev->cqp_ops->poll_for_cqp_op_done(dev->cqp, in i40iw_puda_qp_wqe()
631 struct i40iw_sc_cqp *cqp; in i40iw_puda_cq_wqe() local
636 cqp = dev->cqp; in i40iw_puda_cq_wqe()
637 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, 0); in i40iw_puda_cq_wqe()
[all …]
Di40iw.h256 struct i40iw_cqp cqp; member
429 struct i40iw_cqp_request *i40iw_get_cqp_request(struct i40iw_cqp *cqp, bool wait);
430 void i40iw_free_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request);
431 void i40iw_put_cqp_request(struct i40iw_cqp *cqp, struct i40iw_cqp_request *cqp_request);
Di40iw_vf.h55 enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp,
Di40iw_verbs.c196 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_alloc_push_page()
208 cqp_info->in.u.manage_push_page.cqp = &iwdev->cqp.sc_cqp; in i40iw_alloc_push_page()
216 i40iw_put_cqp_request(&iwdev->cqp, cqp_request); in i40iw_alloc_push_page()
233 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, false); in i40iw_dealloc_push_page()
244 cqp_info->in.u.manage_push_page.cqp = &iwdev->cqp.sc_cqp; in i40iw_dealloc_push_page()
510 struct i40iw_cqp *iwcqp = &iwdev->cqp; in i40iw_create_qp()
783 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, wait); in i40iw_hw_modify_qp()
1023 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_cq_wq_destroy()
1169 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_create_cq()
1503 cqp_request = i40iw_get_cqp_request(&iwdev->cqp, true); in i40iw_hw_alloc_stag()
[all …]
Di40iw_hmc.c164 return dev->cqp->process_cqp_sds(dev, &sdinfo); in i40iw_hmc_sd_one()
207 ret_code = dev->cqp->process_cqp_sds(dev, &sdinfo); in i40iw_hmc_sd_grp()
218 ret_code = dev->cqp->process_cqp_sds(dev, &sdinfo); in i40iw_hmc_sd_grp()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.h22 struct mlx5e_cq_param cqp; member
29 struct mlx5e_cq_param cqp; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dsetup.c63 err = mlx5e_open_cq(c, params->rx_cq_moderation, &cparam->rq.cqp, &c->xskrq.cq); in mlx5e_open_xsk()
71 err = mlx5e_open_cq(c, params->tx_cq_moderation, &cparam->xdp_sq.cqp, &c->xsksq.cq); in mlx5e_open_xsk()
/Linux-v5.10/drivers/scsi/lpfc/
Dlpfc_sli4.h1065 int lpfc_cq_create_set(struct lpfc_hba *phba, struct lpfc_queue **cqp,
1075 struct lpfc_queue **drqp, struct lpfc_queue **cqp,
Dlpfc_sli.c15337 lpfc_cq_create_set(struct lpfc_hba *phba, struct lpfc_queue **cqp, in lpfc_cq_create_set() argument
15354 if (!cqp || !hdwq || !numcq) in lpfc_cq_create_set()
15362 length += ((numcq * cqp[0]->page_count) * in lpfc_cq_create_set()
15380 cq = cqp[idx]; in lpfc_cq_create_set()
15554 cq = cqp[idx]; in lpfc_cq_create_set()
16362 struct lpfc_queue **drqp, struct lpfc_queue **cqp, in lpfc_mrq_create() argument
16377 if (!hrqp || !drqp || !cqp || !numrq) in lpfc_mrq_create()
16413 cq = cqp[idx]; in lpfc_mrq_create()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c1702 &cparam->txq_sq.cqp, &c->sq[tc].cq); in mlx5e_open_tx_cqs()
1844 err = mlx5e_open_cq(c, icocq_moder, &cparam->icosq.cqp, &c->async_icosq.cq); in mlx5e_open_queues()
1848 err = mlx5e_open_cq(c, icocq_moder, &cparam->async_icosq.cqp, &c->icosq.cq); in mlx5e_open_queues()
1856 err = mlx5e_open_cq(c, params->tx_cq_moderation, &cparam->xdp_sq.cqp, &c->xdpsq.cq); in mlx5e_open_queues()
1860 err = mlx5e_open_cq(c, params->rx_cq_moderation, &cparam->rq.cqp, &c->rq.cq); in mlx5e_open_queues()
1865 &cparam->xdp_sq.cqp, &c->rq_xdpsq.cq) : 0; in mlx5e_open_queues()
2184 mlx5e_build_rx_cq_param(priv, params, xsk, &param->cqp); in mlx5e_build_rq_param()
2228 mlx5e_build_tx_cq_param(priv, params, &param->cqp); in mlx5e_build_sq_param()
2308 mlx5e_build_ico_cq_param(priv, log_wq_size, &param->cqp); in mlx5e_build_icosq_param()
2321 mlx5e_build_tx_cq_param(priv, params, &param->cqp); in mlx5e_build_xdpsq_param()