/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | mem.c | 182 struct c4iw_dev *rhp = rdev_to_c4iw_dev(rdev); in _c4iw_write_mem_dma() local 189 daddr = dma_map_single(rhp->ibdev.dma_device, data, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma() 190 if (dma_mapping_error(rhp->ibdev.dma_device, daddr)) in _c4iw_write_mem_dma() 214 dma_unmap_single(rhp->ibdev.dma_device, save, len, DMA_TO_DEVICE); in _c4iw_write_mem_dma() 369 return insert_handle(mhp->rhp, &mhp->rhp->mmidr, mhp, mmid); in finish_mem_reg() 372 static int register_mem(struct c4iw_dev *rhp, struct c4iw_pd *php, in register_mem() argument 378 ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, in register_mem() 388 dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in register_mem() 395 mhp->attr.pbl_addr = c4iw_pblpool_alloc(&mhp->rhp->rdev, in alloc_pbl() 408 struct c4iw_dev *rhp; in c4iw_get_dma_mr() local [all …]
|
H A D | provider.c | 96 struct c4iw_dev *rhp; in c4iw_dealloc_ucontext() local 100 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext() 106 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext() 114 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() local 121 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext() 130 rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; in c4iw_alloc_ucontext() 150 mm->addr = vtophys(rhp->rdev.status_page); in c4iw_alloc_ucontext() 213 struct c4iw_dev *rhp = php->rhp; in c4iw_deallocate_pd() local 217 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd() 218 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd() [all …]
|
H A D | iw_cxgbe.h | 289 static inline struct c4iw_cq *get_chp(struct c4iw_dev *rhp, u32 cqid) in get_chp() argument 291 return idr_find(&rhp->cqidr, cqid); in get_chp() 294 static inline struct c4iw_qp *get_qhp(struct c4iw_dev *rhp, u32 qpid) in get_qhp() argument 296 return idr_find(&rhp->qpidr, qpid); in get_qhp() 299 static inline struct c4iw_mr *get_mhp(struct c4iw_dev *rhp, u32 mmid) in get_mhp() argument 301 return idr_find(&rhp->mmidr, mmid); in get_mhp() 304 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr, in _insert_handle() argument 314 spin_lock_irq(&rhp->lock); in _insert_handle() 318 spin_unlock_irq(&rhp->lock); in _insert_handle() 324 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr, in insert_handle() argument [all …]
|
H A D | qp.c | 106 struct c4iw_dev *rhp = rdev_to_c4iw_dev(rdev); in destroy_qp() local 111 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp() 114 dma_free_coherent(rhp->ibdev.dma_device, in destroy_qp() 130 struct c4iw_dev *rhp = rdev_to_c4iw_dev(rdev); in create_qp() local 181 wq->sq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, wq->sq.memsize, in create_qp() 191 wq->rq.queue = dma_alloc_coherent(rhp->ibdev.dma_device, in create_qp() 318 dma_free_coherent(rhp->ibdev.dma_device, in create_qp() 322 dma_free_coherent(rhp->ibdev.dma_device, in create_qp() 576 struct c4iw_dev *rhp; in free_qp_work() local 580 rhp = qhp->rhp; in free_qp_work() [all …]
|
H A D | cq.c | 56 struct c4iw_dev *rhp = rdev_to_c4iw_dev(rdev); in destroy_cq() local 87 dma_free_coherent(rhp->ibdev.dma_device, in destroy_cq() 99 struct c4iw_dev *rhp = rdev_to_c4iw_dev(rdev); in create_cq() local 124 cq->queue = dma_alloc_coherent(rhp->ibdev.dma_device, cq->memsize, in create_cq() 194 dma_free_coherent(rhp->ibdev.dma_device, cq->memsize, cq->queue, in create_cq() 378 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq() 730 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one() 763 c4iw_invalidate_mr(qhp->rhp, wc->ex.invalidate_rkey); in c4iw_poll_cq_one() 791 c4iw_invalidate_mr(qhp->rhp, in c4iw_poll_cq_one() 894 remove_handle(chp->rhp, &chp->rhp->cqidr, chp->cq.cqid); in c4iw_destroy_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 | 112 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_context() local 146 switch (rhp->chip_version) { in c4iw_alloc_context() 161 rhp->chip_version); in c4iw_alloc_context() 166 if (!rhp->mmid2ptr) { in c4iw_alloc_context() 173 rhp->max_mr = attr.max_mr; in c4iw_alloc_context() 174 rhp->mmid2ptr = calloc(attr.max_mr, sizeof(void *)); in c4iw_alloc_context() 175 if (!rhp->mmid2ptr) { in c4iw_alloc_context() 178 if (rhp->abi_version < 3) { in c4iw_alloc_context() 180 " than libcxgb4:: %d\n", rhp->abi_version); in c4iw_alloc_context() 181 rhp->max_qp = T4_QID_BASE + attr.max_qp; 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 | 470 const union routehdr *rhp; in decnet_print() local 494 rhp = (const union routehdr *)(ap + sizeof(short)); in decnet_print() 495 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 510 rhp = (const union routehdr *)(ap + sizeof(short)); in decnet_print() 511 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 522 if (!print_decnet_ctlmsg(ndo, rhp, length, caplen)) in decnet_print() 533 ND_TCHECK_SIZE(&rhp->rh_long); in decnet_print() 535 GET_LE_U_2(rhp->rh_long.lg_dst.dne_remote.dne_nodeaddr); in decnet_print() 537 GET_LE_U_2(rhp->rh_long.lg_src.dne_remote.dne_nodeaddr); in decnet_print() 538 hops = GET_U_1(rhp->rh_long.lg_visits); in decnet_print() [all …]
|