/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | mem.c | 416 rhp = php->rhp; in c4iw_get_dma_mr() 422 mhp->rhp = rhp; in c4iw_get_dma_mr() 471 rhp = php->rhp; in c4iw_reg_user_mr() 480 mhp->rhp = rhp; in c4iw_reg_user_mr() 567 rhp = php->rhp; in c4iw_alloc_mw() 576 mhp->rhp = rhp; in c4iw_alloc_mw() 599 rhp = mhp->rhp; in c4iw_dealloc_mw() 601 remove_handle(rhp, &rhp->mmidr, mmid); in c4iw_dealloc_mw() 622 rhp = php->rhp; in c4iw_alloc_mr() 642 mhp->rhp = rhp; in c4iw_alloc_mr() [all …]
|
H A D | provider.c | 96 struct c4iw_dev *rhp; in c4iw_dealloc_ucontext() local 213 struct c4iw_dev *rhp = php->rhp; in c4iw_deallocate_pd() local 218 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd() 219 rhp->rdev.stats.pd.cur--; in c4iw_deallocate_pd() 229 struct c4iw_dev *rhp; in c4iw_allocate_pd() local 233 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd() 239 php->rhp = rhp; in c4iw_allocate_pd() 246 mutex_lock(&rhp->rdev.stats.lock); in c4iw_allocate_pd() 247 rhp->rdev.stats.pd.cur++; in c4iw_allocate_pd() 248 if (rhp->rdev.stats.pd.cur > rhp->rdev.stats.pd.max) in c4iw_allocate_pd() [all …]
|
H A D | iw_cxgbe.h | 314 spin_lock_irq(&rhp->lock); in _insert_handle() 318 spin_unlock_irq(&rhp->lock); in _insert_handle() 340 spin_lock_irq(&rhp->lock); in _remove_handle() 343 spin_unlock_irq(&rhp->lock); in _remove_handle() 348 _remove_handle(rhp, idr, id, 1); in remove_handle() 354 _remove_handle(rhp, idr, id, 0); in remove_handle_nolock() 367 struct c4iw_dev *rhp; member 396 struct c4iw_dev *rhp; member 412 struct c4iw_dev *rhp; member 424 struct c4iw_dev *rhp; member [all …]
|
H A D | qp.c | 573 struct c4iw_dev *rhp; in free_qp_work() local 577 rhp = qhp->rhp; in free_qp_work() 1253 KASSERT(rhp == qhp->rhp && ep == qhp->ep, ("%s: EDOOFUS", __func__)); in rdma_fini() 1679 struct c4iw_dev *rhp; in c4iw_destroy_qp() local 1685 rhp = qhp->rhp; in c4iw_destroy_qp() 1694 remove_handle(rhp, &rhp->qpidr, qhp->wq.sq.qid); in c4iw_destroy_qp() 1726 rhp = php->rhp; in c4iw_create_qp() 1779 qhp->rhp = rhp; in c4iw_create_qp() 1802 ret = insert_handle(rhp, &rhp->qpidr, qhp, qhp->wq.sq.qid); in c4iw_create_qp() 1899 remove_handle(rhp, &rhp->qpidr, qhp->wq.sq.qid); in c4iw_create_qp() [all …]
|
H A D | cq.c | 87 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq() 789 c4iw_invalidate_mr(qhp->rhp, in c4iw_poll_cq_one() 892 remove_handle(chp->rhp, &chp->rhp->cqidr, chp->cq.cqid); in c4iw_destroy_cq() 898 destroy_cq(&chp->rhp->rdev, &chp->cq, in c4iw_destroy_cq() 908 struct c4iw_dev *rhp; in c4iw_create_cq() local 920 rhp = to_c4iw_dev(ibdev); in c4iw_create_cq() 959 ret = create_cq(&rhp->rdev, &chp->cq, in c4iw_create_cq() 964 chp->rhp = rhp; in c4iw_create_cq() 971 ret = insert_handle(rhp, &rhp->cqidr, chp, chp->cq.cqid); in c4iw_create_cq() 985 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq() [all …]
|
H A D | cm.c | 435 struct c4iw_dev *rhp; member 453 c4iw_ev_dispatch(cle->rhp, &cle->err_cqe); in process_err_cqes() 642 c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_peer_close() 720 ret = c4iw_modify_qp(ep->com.qp->rhp, in process_conn_error() 2131 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, mask, &attrs, 1); in process_mpa_reply() 2151 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply() 2173 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply() 2494 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, mask, &attrs, 1); in c4iw_accept_cr() 2992 cle->rhp = sc->iwarp_softc; in fw6_cqe_handler()
|
H A D | ev.c | 139 c4iw_modify_qp(qhp->rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, in post_qp_event()
|
/freebsd/contrib/ofed/libcxgb4/ |
H A D | dev.c | 166 if (!rhp->mmid2ptr) { in c4iw_alloc_context() 175 if (!rhp->mmid2ptr) { in c4iw_alloc_context() 186 rhp->qpid2ptr = calloc(rhp->max_qp, sizeof(void *)); in c4iw_alloc_context() 195 rhp->cqid2ptr = calloc(rhp->max_cq, sizeof(void *)); in c4iw_alloc_context() 196 if (!rhp->cqid2ptr) in c4iw_alloc_context() 214 if (rhp->cqid2ptr) in c4iw_alloc_context() 215 free(rhp->cqid2ptr); in c4iw_alloc_context() 216 if (rhp->qpid2ptr) in c4iw_alloc_context() 217 free(rhp->cqid2ptr); in c4iw_alloc_context() 218 if (rhp->mmid2ptr) in c4iw_alloc_context() [all …]
|
H A D | libcxgb4.h | 105 struct c4iw_dev *rhp; member 116 struct c4iw_dev *rhp; member 156 static inline struct c4iw_qp *get_qhp(struct c4iw_dev *rhp, u32 qid) in get_qhp() argument 158 return rhp->qpid2ptr[qid]; in get_qhp() 161 static inline struct c4iw_cq *get_chp(struct c4iw_dev *rhp, u32 qid) in get_chp() argument 163 return rhp->cqid2ptr[qid]; in get_chp()
|
H A D | verbs.c | 199 chp->rhp = dev; in c4iw_create_cq() 215 if (dev_is_t4(chp->rhp)) in c4iw_create_cq() 337 qhp->rhp = dev; in create_qp_v0() 445 qhp->rhp = dev; in create_qp() 470 if (!dev_is_t4(qhp->rhp)) { in create_qp() 493 if (!dev_is_t4(qhp->rhp)) { in create_qp()
|
H A D | cq.c | 214 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq() 591 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one() 721 c4iw_flush_qps(chp->rhp); in c4iw_poll_cq()
|
H A D | qp.c | 404 t4_ring_sq_db(&qhp->wq, idx, dev_is_t4(qhp->rhp), in c4iw_post_send() 475 t4_ring_rq_db(&qhp->wq, idx, dev_is_t4(qhp->rhp), in c4iw_post_receive()
|
/freebsd/contrib/tcpdump/ |
H A D | print-decnet.c | 472 const union routehdr *rhp; in decnet_print() local 496 rhp = (const union routehdr *)(ap + sizeof(short)); in decnet_print() 497 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 513 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 524 if (!print_decnet_ctlmsg(ndo, rhp, length, caplen)) in decnet_print() 535 ND_TCHECK_SIZE(&rhp->rh_long); in decnet_print() 540 hops = GET_U_1(rhp->rh_long.lg_visits); in decnet_print() 545 dst = GET_LE_U_2(rhp->rh_short.sh_dst); in decnet_print() 546 src = GET_LE_U_2(rhp->rh_short.sh_src); in decnet_print() 583 u_int mflags = GET_U_1(rhp->rh_short.sh_flags); in print_decnet_ctlmsg() [all …]
|