| /linux/drivers/infiniband/hw/irdma/ |
| H A D | ctrl.c | 190 static int irdma_sc_add_arp_cache_entry(struct irdma_sc_cqp *cqp, in irdma_sc_add_arp_cache_entry() argument 197 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_add_arp_cache_entry() 207 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_sc_add_arp_cache_entry() 215 irdma_sc_cqp_post_sq(cqp); in irdma_sc_add_arp_cache_entry() 227 static int irdma_sc_del_arp_cache_entry(struct irdma_sc_cqp *cqp, u64 scratch, in irdma_sc_del_arp_cache_entry() argument 233 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_del_arp_cache_entry() 239 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_sc_del_arp_cache_entry() 248 irdma_sc_cqp_post_sq(cqp); in irdma_sc_del_arp_cache_entry() 260 static int irdma_sc_manage_apbvt_entry(struct irdma_sc_cqp *cqp, in irdma_sc_manage_apbvt_entry() argument 267 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_apbvt_entry() [all …]
|
| H A D | uda.h | 39 int irdma_sc_access_ah(struct irdma_sc_cqp *cqp, struct irdma_ah_info *info, 41 int irdma_access_mcast_grp(struct irdma_sc_cqp *cqp, 50 static inline int irdma_sc_create_ah(struct irdma_sc_cqp *cqp, in irdma_sc_create_ah() argument 53 return irdma_sc_access_ah(cqp, info, IRDMA_CQP_OP_CREATE_ADDR_HANDLE, in irdma_sc_create_ah() 57 static inline int irdma_sc_destroy_ah(struct irdma_sc_cqp *cqp, in irdma_sc_destroy_ah() argument 60 return irdma_sc_access_ah(cqp, info, IRDMA_CQP_OP_DESTROY_ADDR_HANDLE, in irdma_sc_destroy_ah() 64 static inline int irdma_sc_create_mcast_grp(struct irdma_sc_cqp *cqp, in irdma_sc_create_mcast_grp() argument 68 return irdma_access_mcast_grp(cqp, info, IRDMA_CQP_OP_CREATE_MCAST_GRP, in irdma_sc_create_mcast_grp() 72 static inline int irdma_sc_modify_mcast_grp(struct irdma_sc_cqp *cqp, in irdma_sc_modify_mcast_grp() argument 76 return irdma_access_mcast_grp(cqp, info, IRDMA_CQP_OP_MODIFY_MCAST_GRP, in irdma_sc_modify_mcast_grp() [all …]
|
| H A D | utils.c | 423 * irdma_alloc_and_get_cqp_request - get cqp struct 424 * @cqp: device cqp ptr 425 * @wait: cqp to be used in wait mode 427 struct irdma_cqp_request *irdma_alloc_and_get_cqp_request(struct irdma_cqp *cqp, in irdma_alloc_and_get_cqp_request() 433 spin_lock_irqsave(&cqp->req_lock, flags); in irdma_alloc_and_get_cqp_request() 434 if (!list_empty(&cqp->cqp_avail_reqs)) { in irdma_alloc_and_get_cqp_request() 435 cqp_request = list_first_entry(&cqp->cqp_avail_reqs, in irdma_alloc_and_get_cqp_request() 439 spin_unlock_irqrestore(&cqp->req_lock, flags); in irdma_alloc_and_get_cqp_request() 449 ibdev_dbg(to_ibdev(cqp in irdma_alloc_and_get_cqp_request() 426 irdma_alloc_and_get_cqp_request(struct irdma_cqp * cqp,bool wait) irdma_alloc_and_get_cqp_request() argument 474 irdma_free_cqp_request(struct irdma_cqp * cqp,struct irdma_cqp_request * cqp_request) irdma_free_cqp_request() argument 499 irdma_put_cqp_request(struct irdma_cqp * cqp,struct irdma_cqp_request * cqp_request) irdma_put_cqp_request() argument 512 irdma_free_pending_cqp_request(struct irdma_cqp * cqp,struct irdma_cqp_request * cqp_request) irdma_free_pending_cqp_request() argument 531 irdma_cleanup_deferred_cqp_ops(struct irdma_sc_dev * dev,struct irdma_cqp * cqp) irdma_cleanup_deferred_cqp_ops() argument 549 struct irdma_cqp *cqp = &rf->cqp; irdma_cleanup_pending_cqp_op() local 916 struct irdma_sc_cqp *cqp = dev->cqp; irdma_cqp_qp_suspend_resume() local 1874 struct irdma_sc_cqp *cqp = &iwcqp->sc_cqp; irdma_cqp_ws_node_cmd() local [all...] |
| H A D | hw.c | 166 static void irdma_complete_cqp_request(struct irdma_cqp *cqp, in irdma_complete_cqp_request() argument 175 irdma_put_cqp_request(cqp, cqp_request); in irdma_complete_cqp_request() 197 irdma_complete_cqp_request(&rf->cqp, cqp_request); in irdma_process_ae_def_cmpl() 613 struct irdma_cqp *cqp = &rf->cqp; in irdma_destroy_cqp() local 616 status = irdma_sc_cqp_destroy(dev->cqp); in irdma_destroy_cqp() 621 dma_free_coherent(dev->hw->device, cqp->sq.size, cqp->sq.va, in irdma_destroy_cqp() 622 cqp->sq.pa); in irdma_destroy_cqp() 623 cqp->sq.va = NULL; in irdma_destroy_cqp() 624 kfree(cqp->oop_op_array); in irdma_destroy_cqp() 625 cqp->oop_op_array = NULL; in irdma_destroy_cqp() [all …]
|
| H A D | uda.c | 20 int irdma_sc_access_ah(struct irdma_sc_cqp *cqp, struct irdma_ah_info *info, in irdma_sc_access_ah() argument 26 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_access_ah() 69 FIELD_PREP(IRDMA_UDA_CQPSQ_MAV_WQEVALID, cqp->polarity) | in irdma_sc_access_ah() 78 irdma_sc_cqp_post_sq(cqp); in irdma_sc_access_ah() 115 int irdma_access_mcast_grp(struct irdma_sc_cqp *cqp, in irdma_access_mcast_grp() argument 122 ibdev_dbg(to_ibdev(cqp->dev), "WQE: mg_id out of range\n"); in irdma_access_mcast_grp() 126 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_access_mcast_grp() 128 ibdev_dbg(to_ibdev(cqp->dev), "WQE: ring full\n"); in irdma_access_mcast_grp() 157 FIELD_PREP(IRDMA_UDA_CQPSQ_MG_WQEVALID, cqp->polarity) | in irdma_access_mcast_grp() 168 irdma_sc_cqp_post_sq(cqp); in irdma_access_mcast_grp()
|
| H A D | type.h | 694 struct irdma_sc_cqp *cqp; member 809 struct irdma_sc_cqp *cqp; member 1353 int irdma_sc_cqp_create(struct irdma_sc_cqp *cqp, u16 *maj_err, u16 *min_err); 1354 int irdma_sc_cqp_destroy(struct irdma_sc_cqp *cqp); 1355 int irdma_sc_cqp_init(struct irdma_sc_cqp *cqp, 1357 void irdma_sc_cqp_post_sq(struct irdma_sc_cqp *cqp); 1358 int irdma_sc_poll_for_cqp_op_done(struct irdma_sc_cqp *cqp, u8 opcode, 1385 int irdma_sc_static_hmc_pages_allocated(struct irdma_sc_cqp *cqp, u64 scratch, 1455 struct irdma_sc_cqp *cqp; member 1461 struct irdma_sc_cqp *cqp; member [all …]
|
| H A D | puda.c | 607 struct irdma_sc_cqp *cqp; in irdma_puda_qp_wqe() local 613 cqp = dev->cqp; in irdma_puda_qp_wqe() 614 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, 0); in irdma_puda_qp_wqe() 626 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_puda_qp_wqe() 633 irdma_sc_cqp_post_sq(cqp); in irdma_puda_qp_wqe() 634 status = irdma_sc_poll_for_cqp_op_done(dev->cqp, IRDMA_CQP_OP_CREATE_QP, in irdma_puda_qp_wqe() 725 struct irdma_sc_cqp *cqp; in irdma_puda_cq_wqe() local 729 cqp = dev->cqp; in irdma_puda_cq_wqe() 730 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, 0); in irdma_puda_cq_wqe() 749 FIELD_PREP(IRDMA_CQPSQ_WQEVALID, cqp->polarity); in irdma_puda_cq_wqe() [all …]
|
| H A D | main.h | 315 struct irdma_cqp cqp; member 502 struct irdma_cqp_request *irdma_alloc_and_get_cqp_request(struct irdma_cqp *cqp, 504 void irdma_free_cqp_request(struct irdma_cqp *cqp, 506 void irdma_put_cqp_request(struct irdma_cqp *cqp,
|
| H A D | verbs.c | 251 cqp_request = irdma_alloc_and_get_cqp_request(&iwdev->rf->cqp, true); in irdma_alloc_push_page() 263 cqp_info->in.u.manage_push_page.cqp = &iwdev->rf->cqp.sc_cqp; in irdma_alloc_push_page() 273 irdma_put_cqp_request(&iwdev->rf->cqp, cqp_request); in irdma_alloc_push_page() 769 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_cqp_create_qp_cmd() 784 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_cqp_create_qp_cmd() 2119 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_resize_cq() 2137 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_resize_cq() 2220 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_modify_srq() 2236 irdma_put_cqp_request(&rf->cqp, cqp_request); in irdma_modify_srq() 2397 cqp_request = irdma_alloc_and_get_cqp_request(&rf->cqp, true); in irdma_create_srq() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 957 mlx5e_build_rx_cq_param(mdev, params, xsk, ¶m->cqp); in mlx5e_build_rq_param() 1015 mlx5e_build_tx_cq_param(mdev, params, ¶m->cqp); in mlx5e_build_sq_param() 1213 mlx5e_build_ico_cq_param(mdev, log_wq_size, ¶m->cqp); in mlx5e_build_icosq_param() 1230 mlx5e_build_ico_cq_param(mdev, log_wq_size, ¶m->cqp); in mlx5e_build_async_icosq_param() 1243 mlx5e_build_tx_cq_param(mdev, params, ¶m->cqp); in mlx5e_build_xdpsq_param()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_sli.c | 16466 lpfc_cq_create_set(struct lpfc_hba *phba, struct lpfc_queue **cqp, in lpfc_cq_create_set() argument 16483 if (!cqp || !hdwq || !numcq) in lpfc_cq_create_set() 16491 length += ((numcq * cqp[0]->page_count) * in lpfc_cq_create_set() 16509 cq = cqp[idx]; in lpfc_cq_create_set() 16683 cq = cqp[idx]; in lpfc_cq_create_set() 17485 struct lpfc_queue **drqp, struct lpfc_queue **cqp, in lpfc_mrq_create() argument 17500 if (!hrqp || !drqp || !cqp || !numrq) in lpfc_mrq_create() 17536 cq = cqp[idx]; in lpfc_mrq_create()
|