/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 256 u32 *stag, u8 stag_state, u32 pdid, in write_tpt_entry() argument 275 stag_idx = (*stag) >> 8; in write_tpt_entry() 277 if ((!reset_tpt_entry) && (*stag == T4_STAG_UNSET)) { in write_tpt_entry() 281 rdev->stats.stag.fail++; in write_tpt_entry() 287 rdev->stats.stag.cur += 32; in write_tpt_entry() 288 if (rdev->stats.stag.cur > rdev->stats.stag.max) in write_tpt_entry() 289 rdev->stats.stag.max = rdev->stats.stag.cur; in write_tpt_entry() 291 *stag = (stag_idx << 8) | (atomic_inc_return(&key) & 0xff); in write_tpt_entry() 301 FW_RI_TPTE_STAGKEY_V((*stag & FW_RI_TPTE_STAGKEY_M)) | in write_tpt_entry() 318 (rdev->lldi.vr->stag.start >> 5), in write_tpt_entry() [all …]
|
D | ev.c | 38 static void print_tpte(struct c4iw_dev *dev, u32 stag) in print_tpte() argument 43 ret = cxgb4_read_tpte(dev->rdev.lldi.ports[0], stag, in print_tpte() 51 stag & 0xffffff00, in print_tpte()
|
D | device.c | 493 dev->rdev.stats.stag.total, dev->rdev.stats.stag.cur, in stats_show() 494 dev->rdev.stats.stag.max, dev->rdev.stats.stag.fail); in stats_show() 536 dev->rdev.stats.stag.max = 0; in stats_clear() 537 dev->rdev.stats.stag.fail = 0; in stats_clear() 815 __func__, pci_name(rdev->lldi.pdev), rdev->lldi.vr->stag.start, in c4iw_rdev_open() 816 rdev->lldi.vr->stag.size, c4iw_num_stags(rdev), in c4iw_rdev_open() 833 rdev->stats.stag.total = rdev->lldi.vr->stag.size; in c4iw_rdev_open() 952 return infop->vr->stag.size > 0 && infop->vr->pbl.size > 0 && in rdma_supported()
|
D | t4.h | 170 __be32 stag; member 174 __be32 stag; member 238 #define CQE_WRID_STAG(x) (be32_to_cpu((x)->u.rcqe.stag)) 243 #define CQE_WRID_FR_STAG(x) (be32_to_cpu((x)->u.scqe.stag))
|
D | t4fw_ri_api.h | 129 __be32 stag; member 645 __be32 stag; member 679 __be32 stag; member
|
D | iw_cxgb4.h | 129 struct c4iw_stat stag; member 201 return (int)(rdev->lldi.vr->stag.size >> 5); in c4iw_num_stags() 376 u32 stag; member
|
D | qp.c | 619 fr->stag = cpu_to_be32(mhp->ibmr.rkey); in build_tpte_memreg() 663 wqe->fr.stag = cpu_to_be32(wr->key); in build_memreg()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_mem.c | 43 static int iwch_finish_mem_reg(struct iwch_mr *mhp, u32 stag) in iwch_finish_mem_reg() argument 48 mhp->attr.stag = stag; in iwch_finish_mem_reg() 49 mmid = stag >> 8; in iwch_finish_mem_reg() 50 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; in iwch_finish_mem_reg() 58 u32 stag; in iwch_register_mem() local 62 &stag, mhp->attr.pdid, in iwch_register_mem() 71 ret = iwch_finish_mem_reg(mhp, stag); in iwch_register_mem() 73 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_register_mem()
|
D | cxio_hal.h | 172 int cxio_register_phys_mem(struct cxio_rdev *rdev, u32 * stag, u32 pdid, 175 int cxio_reregister_phys_mem(struct cxio_rdev *rdev, u32 * stag, u32 pdid, 178 int cxio_dereg_mem(struct cxio_rdev *rdev, u32 stag, u32 pbl_size, 180 int cxio_allocate_window(struct cxio_rdev *rdev, u32 * stag, u32 pdid); 181 int cxio_allocate_stag(struct cxio_rdev *rdev, u32 *stag, u32 pdid, u32 pbl_size, u32 pbl_addr); 182 int cxio_deallocate_window(struct cxio_rdev *rdev, u32 stag); 206 void cxio_dump_tpt(struct cxio_rdev *rev, u32 stag);
|
D | cxio_hal.c | 695 u32 *stag, u8 stag_state, u32 pdid, in __cxio_tpt_op() argument 709 stag_idx = (*stag) >> 8; in __cxio_tpt_op() 711 if ((!reset_tpt_entry) && !(*stag != T3_STAG_UNSET)) { in __cxio_tpt_op() 715 *stag = (stag_idx << 8) | ((*stag) & 0xFF); in __cxio_tpt_op() 727 V_TPT_STAG_KEY((*stag) & M_TPT_STAG_KEY) | in __cxio_tpt_op() 787 int cxio_register_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, in cxio_register_phys_mem() argument 791 *stag = T3_STAG_UNSET; in cxio_register_phys_mem() 792 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm, in cxio_register_phys_mem() 796 int cxio_reregister_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, in cxio_reregister_phys_mem() argument 800 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm, in cxio_reregister_phys_mem() [all …]
|
D | iwch_provider.c | 463 mmid = mhp->attr.stag >> 8; in iwch_dereg_mr() 464 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_dereg_mr() 665 u32 stag = 0; in iwch_alloc_mw() local 676 ret = cxio_allocate_window(&rhp->rdev, &stag, php->pdid); in iwch_alloc_mw() 684 mhp->attr.stag = stag; in iwch_alloc_mw() 685 mmid = (stag) >> 8; in iwch_alloc_mw() 686 mhp->ibmw.rkey = stag; in iwch_alloc_mw() 688 cxio_deallocate_window(&rhp->rdev, mhp->attr.stag); in iwch_alloc_mw() 692 pr_debug("%s mmid 0x%x mhp %p stag 0x%x\n", __func__, mmid, mhp, stag); in iwch_alloc_mw() 705 cxio_deallocate_window(&rhp->rdev, mhp->attr.stag); in iwch_dealloc_mw() [all …]
|
D | iwch_qp.c | 77 wqe->send.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_send() 103 wqe->write.sgl[0].stag = wr->ex.imm_data; in build_rdma_write() 114 wqe->write.sgl[i].stag = in build_rdma_write() 159 wqe->fastreg.stag = cpu_to_be32(wr->key); in build_memreg() 195 wqe->local_inv.stag = cpu_to_be32(wr->ex.invalidate_rkey); in build_inv_stag() 265 wqe->recv.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_recv() 276 wqe->recv.sgl[i].stag = 0; in build_rdma_recv() 331 wqe->recv.sgl[i].stag = 0; in build_zero_stag_recv() 339 wqe->recv.sgl[i].stag = 0; in build_zero_stag_recv()
|
D | cxio_wr.h | 161 __be32 stag; member 185 __be32 stag; /* 2 */ member 225 __be32 stag; /* 2 */ member 558 __be32 stag; member 622 #define CQE_WRID_STAG(x) (be32_to_cpu((x).u.rcqe.stag))
|
D | cxio_dbg.c | 40 void cxio_dump_tpt(struct cxio_rdev *rdev, u32 stag) in cxio_dump_tpt() argument 52 m->addr = (stag>>8) * 32 + rdev->rnic_info.tpt_base; in cxio_dump_tpt()
|
D | cxio_resource.h | 51 extern void cxio_hal_put_stag(struct cxio_hal_resource *rscp, u32 stag);
|
D | cxio_resource.c | 203 void cxio_hal_put_stag(struct cxio_hal_resource *rscp, u32 stag) in cxio_hal_put_stag() argument 205 cxio_hal_put_resource(&rscp->tpt_fifo, &rscp->tpt_fifo_lock, stag); in cxio_hal_put_stag()
|
D | iwch_provider.h | 56 u32 stag; member
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_verbs.c | 1302 static void i40iw_free_stag(struct i40iw_device *iwdev, u32 stag) in i40iw_free_stag() argument 1306 stag_idx = (stag & iwdev->mr_stagmask) >> I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_free_stag() 1317 u32 stag = 0; in i40iw_create_stag() local 1336 stag = stag_index << I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_create_stag() 1337 stag |= driver_key; in i40iw_create_stag() 1338 stag += (u32)consumer_key; in i40iw_create_stag() 1341 return stag; in i40iw_create_stag() 1618 info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_hw_alloc_stag() 1651 u32 stag; in i40iw_alloc_mr() local 1658 stag = i40iw_create_stag(iwdev); in i40iw_alloc_mr() [all …]
|
D | i40iw_uk.c | 211 LS_64(sge->stag, I40IWQPSQ_FRAG_STAG))); in i40iw_set_fragment() 279 if (!op_info->rem_addr.stag) in i40iw_rdma_write() 282 header = LS_64(op_info->rem_addr.stag, I40IWQPSQ_REMSTAG) | in i40iw_rdma_write() 337 header = LS_64(op_info->rem_addr.stag, I40IWQPSQ_REMSTAG) | in i40iw_rdma_read() 452 header = LS_64(op_info->rem_addr.stag, I40IWQPSQ_REMSTAG) | in i40iw_inline_rdma_write()
|
D | i40iw_verbs.h | 99 u32 stag; member
|
D | i40iw_user.h | 113 i40iw_stag stag; member
|
/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 71 u32 stag; in nes_alloc_mw() local 100 stag = stag_index << 8; in nes_alloc_mw() 101 stag |= driver_key; in nes_alloc_mw() 102 stag += (u32)stag_key; in nes_alloc_mw() 105 stag, stag_index); in nes_alloc_mw() 125 set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, stag); in nes_alloc_mw() 135 stag, ret, cqp_request->major_code, cqp_request->minor_code); in nes_alloc_mw() 148 nesmr->ibmw.rkey = stag; in nes_alloc_mw() 214 u32 stag, u32 page_count) in alloc_fast_reg_mr() argument 269 set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, stag); in alloc_fast_reg_mr() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_uld.h | 279 struct cxgb4_range stag; member 394 int cxgb4_read_tpte(struct net_device *dev, u32 stag, __be32 *tpte);
|
D | cxgb4_main.c | 1714 int cxgb4_read_tpte(struct net_device *dev, u32 stag, __be32 *tpte) in cxgb4_read_tpte() argument 1724 offset = ((stag >> 8) * 32) + adap->vres.stag.start; in cxgb4_read_tpte() 1777 stag, offset); in cxgb4_read_tpte() 3941 adap->vres.stag.start = val[0]; in adap_init0() 3942 adap->vres.stag.size = val[1] - val[0] + 1; in adap_init0()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 85 u16 stag; member
|