Home
last modified time | relevance | path

Searched refs:stag (Results 1 – 13 of 13) sorted by relevance

/drivers/infiniband/hw/cxgb3/
Diwch_mem.c42 static void iwch_finish_mem_reg(struct iwch_mr *mhp, u32 stag) in iwch_finish_mem_reg() argument
47 mhp->attr.stag = stag; in iwch_finish_mem_reg()
48 mmid = stag >> 8; in iwch_finish_mem_reg()
49 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; in iwch_finish_mem_reg()
57 u32 stag; in iwch_register_mem() local
60 &stag, mhp->attr.pdid, in iwch_register_mem()
69 iwch_finish_mem_reg(mhp, stag); in iwch_register_mem()
79 u32 stag; in iwch_reregister_mem() local
85 stag = mhp->attr.stag; in iwch_reregister_mem()
87 &stag, mhp->attr.pdid, in iwch_reregister_mem()
[all …]
Dcxio_hal.h161 int cxio_register_phys_mem(struct cxio_rdev *rdev, u32 * stag, u32 pdid,
164 int cxio_reregister_phys_mem(struct cxio_rdev *rdev, u32 * stag, u32 pdid,
167 int cxio_dereg_mem(struct cxio_rdev *rdev, u32 stag, u32 pbl_size,
169 int cxio_allocate_window(struct cxio_rdev *rdev, u32 * stag, u32 pdid);
170 int cxio_allocate_stag(struct cxio_rdev *rdev, u32 *stag, u32 pdid, u32 pbl_size, u32 pbl_addr);
171 int cxio_deallocate_window(struct cxio_rdev *rdev, u32 stag);
191 void cxio_dump_tpt(struct cxio_rdev *rev, u32 stag);
Dcxio_hal.c694 u32 *stag, u8 stag_state, u32 pdid, in __cxio_tpt_op() argument
705 stag_idx = (*stag) >> 8; in __cxio_tpt_op()
707 if ((!reset_tpt_entry) && !(*stag != T3_STAG_UNSET)) { in __cxio_tpt_op()
711 *stag = (stag_idx << 8) | ((*stag) & 0xFF); in __cxio_tpt_op()
723 V_TPT_STAG_KEY((*stag) & M_TPT_STAG_KEY) | in __cxio_tpt_op()
785 int cxio_register_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, in cxio_register_phys_mem() argument
789 *stag = T3_STAG_UNSET; in cxio_register_phys_mem()
790 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm, in cxio_register_phys_mem()
794 int cxio_reregister_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, in cxio_reregister_phys_mem() argument
798 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm, in cxio_reregister_phys_mem()
[all …]
Diwch_provider.c443 mmid = mhp->attr.stag >> 8; in iwch_dereg_mr()
444 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in iwch_dereg_mr()
733 u32 stag = 0; in iwch_alloc_mw() local
741 ret = cxio_allocate_window(&rhp->rdev, &stag, php->pdid); in iwch_alloc_mw()
749 mhp->attr.stag = stag; in iwch_alloc_mw()
750 mmid = (stag) >> 8; in iwch_alloc_mw()
751 mhp->ibmw.rkey = stag; in iwch_alloc_mw()
753 PDBG("%s mmid 0x%x mhp %p stag 0x%x\n", __func__, mmid, mhp, stag); in iwch_alloc_mw()
766 cxio_deallocate_window(&rhp->rdev, mhp->attr.stag); in iwch_dealloc_mw()
779 u32 stag = 0; in iwch_alloc_fast_reg_mr() local
[all …]
Dcxio_wr.h161 __be32 stag; member
185 __be32 stag; /* 2 */ member
225 __be32 stag; /* 2 */ member
552 __be32 stag; member
610 #define CQE_WRID_STAG(x) (be32_to_cpu((x).u.rcqe.stag))
Dcxio_dbg.c39 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()
Diwch_qp.c75 wqe->send.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_send()
101 wqe->write.sgl[0].stag = wr->ex.imm_data; in build_rdma_write()
112 wqe->write.sgl[i].stag = in build_rdma_write()
156 wqe->fastreg.stag = cpu_to_be32(wr->wr.fast_reg.rkey); in build_fastreg()
192 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()
Dcxio_resource.h51 extern void cxio_hal_put_stag(struct cxio_hal_resource *rscp, u32 stag);
Dcxio_resource.c201 void cxio_hal_put_stag(struct cxio_hal_resource *rscp, u32 stag) in cxio_hal_put_stag() argument
203 cxio_hal_put_resource(rscp->tpt_fifo, stag); in cxio_hal_put_stag()
Diwch_provider.h56 u32 stag; member
/drivers/infiniband/hw/nes/
Dnes_verbs.c67 u32 stag; in nes_alloc_mw() local
93 stag = stag_index << 8; in nes_alloc_mw()
94 stag |= driver_key; in nes_alloc_mw()
95 stag += (u32)stag_key; in nes_alloc_mw()
98 stag, stag_index); in nes_alloc_mw()
118 set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_STAG_IDX, stag); in nes_alloc_mw()
128 stag, ret, cqp_request->major_code, cqp_request->minor_code); in nes_alloc_mw()
141 nesmr->ibmw.rkey = stag; in nes_alloc_mw()
294 u32 stag; in nes_alloc_fmr() local
432 stag = stag_index << 8; in nes_alloc_fmr()
[all …]
/drivers/infiniband/hw/amso1100/
Dc2_qp.c680 dst->stag = cpu_to_be32(src->lkey); in move_sgl()
697 dst->stag = 0; in move_sgl()
Dc2_wr.h202 __be32 stag; member
953 u32 stag; member