Lines Matching defs:stag
693 /* IN: stag key, pdid, perm, zbva, to, len, page_size, pbl_size and pbl_addr
694 * OUT: stag index
698 u32 *stag, u8 stag_state, u32 pdid,
712 stag_idx = (*stag) >> 8;
714 if ((!reset_tpt_entry) && !(*stag != T3_STAG_UNSET)) {
718 *stag = (stag_idx << 8) | ((*stag) & 0xFF);
730 V_TPT_STAG_KEY((*stag) & M_TPT_STAG_KEY) |
750 /* release the stag index to free pool */
790 int cxio_register_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid,
794 *stag = T3_STAG_UNSET;
795 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
799 int cxio_reregister_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid,
803 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
807 int cxio_dereg_mem(struct cxio_rdev *rdev_p, u32 stag, u32 pbl_size,
810 return __cxio_tpt_op(rdev_p, 1, &stag, 0, 0, 0, 0, 0, 0ULL, 0, 0,
814 int cxio_allocate_window(struct cxio_rdev *rdev_p, u32 * stag, u32 pdid)
816 *stag = T3_STAG_UNSET;
817 return __cxio_tpt_op(rdev_p, 0, stag, 0, pdid, TPT_MW, 0, 0, 0ULL, 0, 0,
821 int cxio_deallocate_window(struct cxio_rdev *rdev_p, u32 stag)
823 return __cxio_tpt_op(rdev_p, 1, &stag, 0, 0, 0, 0, 0, 0ULL, 0, 0,
827 int cxio_allocate_stag(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, u32 pbl_size, u32 pbl_addr)
829 *stag = T3_STAG_UNSET;
830 return __cxio_tpt_op(rdev_p, 0, stag, 0, pdid, TPT_NON_SHARED_MR,