Lines Matching refs:stag
677 /* IN: stag key, pdid, perm, zbva, to, len, page_size, pbl, and pbl_size
678 * OUT: stag index, actual pbl_size, pbl_addr allocated.
682 u32 *stag, u8 stag_state, u32 pdid,
691 int rereg = (*stag != T3_STAG_UNSET);
694 stag_idx = (*stag) >> 8;
696 if ((!reset_tpt_entry) && !(*stag != T3_STAG_UNSET)) {
700 *stag = (stag_idx << 8) | ((*stag) & 0xFF);
734 V_TPT_STAG_KEY((*stag) & M_TPT_STAG_KEY) |
756 /* release the stag index to free pool */
770 int cxio_register_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid,
775 *stag = T3_STAG_UNSET;
776 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
780 int cxio_reregister_phys_mem(struct cxio_rdev *rdev_p, u32 *stag, u32 pdid,
785 return __cxio_tpt_op(rdev_p, 0, stag, 1, pdid, TPT_NON_SHARED_MR, perm,
789 int cxio_dereg_mem(struct cxio_rdev *rdev_p, u32 stag, u32 pbl_size,
792 return __cxio_tpt_op(rdev_p, 1, &stag, 0, 0, 0, 0, 0, 0ULL, 0, 0, NULL,
796 int cxio_allocate_window(struct cxio_rdev *rdev_p, u32 * stag, u32 pdid)
799 *stag = T3_STAG_UNSET;
800 return __cxio_tpt_op(rdev_p, 0, stag, 0, pdid, TPT_MW, 0, 0, 0ULL, 0, 0,
804 int cxio_deallocate_window(struct cxio_rdev *rdev_p, u32 stag)
806 return __cxio_tpt_op(rdev_p, 1, &stag, 0, 0, 0, 0, 0, 0ULL, 0, 0, NULL,