Home
last modified time | relevance | path

Searched refs:rhp (Results 1 – 21 of 21) sorted by relevance

/NextBSD/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_provider.c129 struct iwch_dev *rhp = to_iwch_dev(context->device); in iwch_dealloc_ucontext() local
138 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
147 struct iwch_dev *rhp = to_iwch_dev(ibdev); in iwch_alloc_ucontext() local
153 cxio_init_ucontext(&rhp->rdev, &context->uctx); in iwch_alloc_ucontext()
167 remove_handle(chp->rhp, &chp->rhp->cqidr, chp->cq.cqid); in iwch_destroy_cq()
173 cxio_destroy_cq(&chp->rhp->rdev, &chp->cq); in iwch_destroy_cq()
183 struct iwch_dev *rhp; in iwch_create_cq() local
193 rhp = to_iwch_dev(ibdev); in iwch_create_cq()
200 if (!t3a_device(rhp)) { in iwch_create_cq()
209 if (t3a_device(rhp)) { in iwch_create_cq()
[all …]
HDiw_cxgb.h124 static inline int t3b_device(const struct iwch_dev *rhp __unused) in t3b_device()
129 static inline int t3a_device(const struct iwch_dev *rhp __unused) in t3a_device()
134 static inline struct iwch_cq *get_chp(struct iwch_dev *rhp, u32 cqid) in get_chp() argument
136 return idr_find(&rhp->cqidr, cqid); in get_chp()
139 static inline struct iwch_qp *get_qhp(struct iwch_dev *rhp, u32 qpid) in get_qhp() argument
141 return idr_find(&rhp->qpidr, qpid); in get_qhp()
144 static inline struct iwch_mr *get_mhp(struct iwch_dev *rhp, u32 mmid) in get_mhp() argument
146 return idr_find(&rhp->mmidr, mmid); in get_mhp()
149 static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr, in insert_handle() argument
159 mtx_lock(&rhp->lock); in insert_handle()
[all …]
HDiw_cxgb_mem.c88 return insert_handle(mhp->rhp, &mhp->rhp->mmidr, mhp, mmid); in iwch_finish_mem_reg()
91 int iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php, in iwch_register_mem() argument
98 if (cxio_register_phys_mem(&rhp->rdev, in iwch_register_mem()
110 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_register_mem()
115 int iwch_reregister_mem(struct iwch_dev *rhp, struct iwch_pd *php, in iwch_reregister_mem() argument
128 if (cxio_reregister_phys_mem(&rhp->rdev, in iwch_reregister_mem()
140 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_reregister_mem()
147 mhp->attr.pbl_addr = cxio_hal_pblpool_alloc(&mhp->rhp->rdev, in iwch_alloc_pbl()
160 cxio_hal_pblpool_free(&mhp->rhp->rdev, mhp->attr.pbl_addr, in iwch_free_pbl()
166 return cxio_write_pbl(&mhp->rhp->rdev, pages, in iwch_write_pbl()
HDiw_cxgb_cq.c88 static int iwch_poll_cq_one(struct iwch_dev *rhp, struct iwch_cq *chp, in iwch_poll_cq_one() argument
104 qhp = get_qhp(rhp, CQE_QPID(*rd_cqe)); in iwch_poll_cq_one()
113 if (t3a_device(chp->rhp) && credit) { in iwch_poll_cq_one()
116 cxio_hal_cq_op(&rhp->rdev, &chp->cq, CQ_CREDIT_UPDATE, credit); in iwch_poll_cq_one()
232 struct iwch_dev *rhp; in iwch_poll_cq() local
238 rhp = chp->rhp; in iwch_poll_cq()
252 err = iwch_poll_cq_one(rhp, chp, wc + npolled); in iwch_poll_cq()
HDiw_cxgb_provider.h39 struct iwch_dev *rhp; member
73 struct iwch_dev *rhp; member
88 struct iwch_dev *rhp; member
101 struct iwch_dev *rhp; member
158 struct iwch_dev *rhp; member
257 int iwch_modify_qp(struct iwch_dev *rhp,
341 int iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php,
344 int iwch_reregister_mem(struct iwch_dev *rhp, struct iwch_pd *php,
HDiw_cxgb_qp.c199 static int iwch_sgl2pbl_map(struct iwch_dev *rhp, struct ib_sge *sg_list, in iwch_sgl2pbl_map() argument
207 mhp = get_mhp(rhp, (sg_list[i].lkey) >> 8); in iwch_sgl2pbl_map()
239 rhp->rdev.rnic_info.pbl_base) >> 3) + in iwch_sgl2pbl_map()
257 err = iwch_sgl2pbl_map(qhp->rhp, wr->sg_list, wr->num_sge, pbl_addr, in build_rdma_recv()
304 pbl_addr = cxio_hal_pblpool_alloc(&qhp->rhp->rdev, T3_STAG0_PBL_SIZE); in build_zero_stag_recv()
311 pbl_offset = (pbl_addr - qhp->rhp->rdev.rnic_info.pbl_base) >> 3; in build_zero_stag_recv()
517 struct iwch_dev *rhp; in iwch_bind_mw() local
532 rhp = qhp->rhp; in iwch_bind_mw()
566 err = iwch_sgl2pbl_map(rhp, &sgl, 1, &pbl_addr, &page_size); in iwch_bind_mw()
758 return t3_offload_tx(qhp->rhp->rdev.adap, m); in iwch_post_terminate()
[all …]
HDiw_cxgb_cm.c706 err = iwch_modify_qp(ep->com.qp->rhp, in process_mpa_reply()
896 iwch_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_peer_close()
911 iwch_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_peer_close()
969 ret = iwch_modify_qp(ep->com.qp->rhp, in process_conn_error()
1019 iwch_modify_qp(ep->com.qp->rhp, in process_close_complete()
1102 iwch_modify_qp(ep->com.qp->rhp, in ec_status()
1145 iwch_modify_qp(ep->com.qp->rhp, in ep_timeout()
1195 if ((conn_param->ord > qp->rhp->attr.max_rdma_read_qp_depth) || in iwch_accept_cr()
1196 (conn_param->ird > qp->rhp->attr.max_rdma_reads_per_qp)) { in iwch_accept_cr()
1226 err = iwch_modify_qp(ep->com.qp->rhp, in iwch_accept_cr()
HDiw_cxgb_ev.c117 iwch_modify_qp(qhp->rhp, qhp, IWCH_QP_ATTR_NEXT_STATE, in post_qp_event()
/NextBSD/sys/dev/cxgbe/iw_cxgbe/
HDmem.c243 return insert_handle(mhp->rhp, &mhp->rhp->mmidr, mhp, mmid); in finish_mem_reg()
246 static int register_mem(struct c4iw_dev *rhp, struct c4iw_pd *php, in register_mem() argument
252 ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, in register_mem()
262 dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in register_mem()
267 static int reregister_mem(struct c4iw_dev *rhp, struct c4iw_pd *php, in reregister_mem() argument
277 ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, in reregister_mem()
287 dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in reregister_mem()
295 mhp->attr.pbl_addr = c4iw_pblpool_alloc(&mhp->rhp->rdev, in alloc_pbl()
381 struct c4iw_dev *rhp; in c4iw_reregister_phys_mem() local
395 rhp = mhp->rhp; in c4iw_reregister_phys_mem()
[all …]
HDprovider.c88 struct c4iw_dev *rhp = to_c4iw_dev(context->device); in c4iw_dealloc_ucontext() local
95 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
104 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() local
110 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
220 struct c4iw_dev *rhp = php->rhp; in c4iw_deallocate_pd() local
224 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
225 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
226 rhp->rdev.stats.pd.cur--; in c4iw_deallocate_pd()
227 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
239 struct c4iw_dev *rhp; in c4iw_allocate_pd() local
[all …]
HDiw_cxgbe.h238 static inline struct c4iw_cq *get_chp(struct c4iw_dev *rhp, u32 cqid) in get_chp() argument
240 return idr_find(&rhp->cqidr, cqid); in get_chp()
243 static inline struct c4iw_qp *get_qhp(struct c4iw_dev *rhp, u32 qpid) in get_qhp() argument
245 return idr_find(&rhp->qpidr, qpid); in get_qhp()
248 static inline struct c4iw_mr *get_mhp(struct c4iw_dev *rhp, u32 mmid) in get_mhp() argument
250 return idr_find(&rhp->mmidr, mmid); in get_mhp()
253 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr, in _insert_handle() argument
263 spin_lock_irq(&rhp->lock); in _insert_handle()
267 spin_unlock_irq(&rhp->lock); in _insert_handle()
273 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr, in insert_handle() argument
[all …]
HDqp.c931 t4_wrq_tx(qhp->rhp->rdev.adap, wr); in post_terminate()
979 rchp = get_chp(qhp->rhp, qhp->attr.rcq); in flush_qp()
980 schp = get_chp(qhp->rhp, qhp->attr.scq); in flush_qp()
1001 rdma_fini(struct c4iw_dev *rhp, struct c4iw_qp *qhp, struct c4iw_ep *ep) in rdma_fini() argument
1003 struct c4iw_rdev *rdev = &rhp->rdev; in rdma_fini()
1013 KASSERT(rhp == qhp->rhp && ep == qhp->ep, ("%s: EDOOFUS", __func__)); in rdma_fini()
1087 static int rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp) in rdma_init() argument
1093 struct c4iw_rdev *rdev = &qhp->rhp->rdev; in rdma_init()
1166 int c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp, in c4iw_modify_qp() argument
1244 ret = rdma_init(rhp, qhp); in c4iw_modify_qp()
[all …]
HDcq.c606 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one()
765 remove_handle(chp->rhp, &chp->rhp->cqidr, chp->cq.cqid); in c4iw_destroy_cq()
771 destroy_cq(&chp->rhp->rdev, &chp->cq, in c4iw_destroy_cq()
781 struct c4iw_dev *rhp; in c4iw_create_cq() local
792 rhp = to_c4iw_dev(ibdev); in c4iw_create_cq()
840 ret = create_cq(&rhp->rdev, &chp->cq, in c4iw_create_cq()
841 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
845 chp->rhp = rhp; in c4iw_create_cq()
852 ret = insert_handle(rhp, &rhp->cqidr, chp, chp->cq.cqid); in c4iw_create_cq()
864 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq()
[all …]
HDev.c67 c4iw_modify_qp(qhp->rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, in post_qp_event()
HDcm.c364 c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_peer_close()
449 ret = c4iw_modify_qp(ep->com.qp->rhp, in process_conn_error()
1641 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, mask, &attrs, 1); in process_mpa_reply()
1660 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply()
1680 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply()
1976 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, mask, &attrs, 1); in c4iw_accept_cr()
/NextBSD/contrib/ofed/libcxgb4/src/
HDdev.c115 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_context() local
149 switch (rhp->chip_version) { in c4iw_alloc_context()
162 rhp->chip_version); in c4iw_alloc_context()
167 if (!rhp->mmid2ptr) { in c4iw_alloc_context()
174 rhp->max_mr = attr.max_mr; in c4iw_alloc_context()
175 rhp->mmid2ptr = calloc(attr.max_mr, sizeof(void *)); in c4iw_alloc_context()
176 if (!rhp->mmid2ptr) { in c4iw_alloc_context()
179 rhp->max_qp = T4_QID_BASE + attr.max_cq; in c4iw_alloc_context()
180 rhp->qpid2ptr = calloc(T4_QID_BASE + attr.max_cq, sizeof(void *)); in c4iw_alloc_context()
181 if (!rhp->qpid2ptr) { in c4iw_alloc_context()
[all …]
HDlibcxgb4.h95 struct c4iw_dev *rhp; member
106 struct c4iw_dev *rhp; member
146 static inline struct c4iw_qp *get_qhp(struct c4iw_dev *rhp, u32 qid) in get_qhp() argument
148 return rhp->qpid2ptr[qid]; in get_qhp()
151 static inline struct c4iw_cq *get_chp(struct c4iw_dev *rhp, u32 qid) in get_chp() argument
153 return rhp->cqid2ptr[qid]; in get_chp()
HDverbs.c199 chp->rhp = dev; in c4iw_create_cq()
215 if (dev_is_t5(chp->rhp)) in c4iw_create_cq()
333 qhp->rhp = dev; in create_qp_v0()
437 qhp->rhp = dev; in create_qp()
463 if (dev_is_t5(qhp->rhp)) { in create_qp()
482 if (dev_is_t5(qhp->rhp)) { in create_qp()
HDcq.c217 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq()
594 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one()
724 c4iw_flush_qps(chp->rhp); in c4iw_poll_cq()
HDqp.c396 t4_ring_sq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp), in c4iw_post_send()
462 t4_ring_rq_db(&qhp->wq, idx, dev_is_t5(qhp->rhp), in c4iw_post_receive()
/NextBSD/contrib/tcpdump/
HDprint-decnet.c507 register const union routehdr *rhp; in decnet_print() local
530 rhp = (const union routehdr *)&(ap[sizeof(short)]); in decnet_print()
531 ND_TCHECK(rhp->rh_short.sh_flags); in decnet_print()
532 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print()
547 rhp = (const union routehdr *)&(ap[sizeof(short)]); in decnet_print()
548 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print()
559 if (!print_decnet_ctlmsg(ndo, rhp, length, caplen)) in decnet_print()
570 ND_TCHECK(rhp->rh_long); in decnet_print()
572 EXTRACT_LE_16BITS(rhp->rh_long.lg_dst.dne_remote.dne_nodeaddr); in decnet_print()
574 EXTRACT_LE_16BITS(rhp->rh_long.lg_src.dne_remote.dne_nodeaddr); in decnet_print()
[all …]