Home
last modified time | relevance | path

Searched refs:stag_idx (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dmem.c278 u32 stag_idx; in write_tpt_entry() local
285 stag_idx = (*stag) >> 8; in write_tpt_entry()
288 stag_idx = c4iw_get_resource(&rdev->resource.tpt_table); in write_tpt_entry()
289 if (!stag_idx) { in write_tpt_entry()
300 *stag = (stag_idx << 8) | (atomic_inc_return(&key) & 0xff); in write_tpt_entry()
303 stag_state, type, pdid, stag_idx); in write_tpt_entry()
326 err = write_adapter_mem(rdev, stag_idx + in write_tpt_entry()
331 c4iw_put_resource(&rdev->resource.tpt_table, stag_idx); in write_tpt_entry()
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Dcxio_hal.c700 u32 stag_idx; in __cxio_tpt_op() local
707 stag_idx = (*stag) >> 8; in __cxio_tpt_op()
710 stag_idx = cxio_hal_get_stag(rdev_p->rscp); in __cxio_tpt_op()
711 if (!stag_idx) in __cxio_tpt_op()
713 *stag = (stag_idx << 8) | ((*stag) & 0xFF); in __cxio_tpt_op()
716 __func__, stag_state, type, pdid, stag_idx); in __cxio_tpt_op()
741 stag_idx + in __cxio_tpt_op()
747 cxio_hal_put_stag(rdev_p->rscp, stag_idx); in __cxio_tpt_op()
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c1304 u32 stag_idx; in i40iw_free_stag() local
1306 stag_idx = (stag & iwdev->mr_stagmask) >> I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_free_stag()
1307 i40iw_free_resource(iwdev, iwdev->allocated_mrs, stag_idx); in i40iw_free_stag()
1618 info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_hw_alloc_stag()
1785 stag_info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT; in i40iw_hwreg_mr()
2089 u32 stag_idx; in i40iw_dereg_mr() local
2116 info->stag_idx = RS_64_1(ib_mr->rkey, I40IW_CQPSQ_STAG_IDX_SHIFT); in i40iw_dereg_mr()
2117 stag_idx = info->stag_idx; in i40iw_dereg_mr()
2128 i40iw_pr_err("CQP-OP dealloc failed for stag_idx = 0x%x\n", stag_idx); in i40iw_dereg_mr()
2332 info.stag_idx = reg_wr(ib_wr)->key >> 8; in i40iw_post_send()
Di40iw_type.h774 u32 stag_idx; member
793 i40iw_stag_index stag_idx; member
812 i40iw_stag_index stag_idx; member
826 u32 stag_idx; member
Di40iw_ctrl.c2959 LS_64(info->stag_idx, I40IW_CQPSQ_STAG_IDX)); in i40iw_sc_alloc_stag()
3034 LS_64(info->stag_idx, I40IW_CQPSQ_STAG_IDX)); in i40iw_sc_mr_reg_non_shared()
3156 LS_64(info->stag_idx, I40IW_CQPSQ_STAG_IDX)); in i40iw_sc_dealloc_stag()
3290 LS_64(info->stag_idx, I40IWQPSQ_STAGINDEX) | in i40iw_sc_mr_fast_register()