Lines Matching refs:RES_MTT
295 case RES_MTT: return "RES_MTT"; in resource_str()
433 if (res_type == RES_MTT) { in initialize_res_quotas()
469 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas()
577 case RES_MTT: in mlx4_init_resource_tracker()
578 initialize_res_quotas(dev, res_alloc, RES_MTT, in mlx4_init_resource_tracker()
865 case RES_MTT: in mlx4_resource_type_to_str()
1198 case RES_MTT: in alloc_tr()
1448 case RES_MTT: in remove_ok()
1865 err = mlx4_grant_resource(dev, slave, RES_MTT, 1 << order, 0); in mtt_alloc_res()
1871 mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); in mtt_alloc_res()
1875 err = add_res_range(dev, slave, base, 1, RES_MTT, order); in mtt_alloc_res()
1877 mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); in mtt_alloc_res()
2309 case RES_MTT: in mlx4_ALLOC_RES_wrapper()
2411 err = rem_res_range(dev, slave, base, 1, RES_MTT, order); in mtt_free_res()
2413 mlx4_release_resource(dev, slave, RES_MTT, 1 << order, 0); in mtt_free_res()
2623 case RES_MTT: in mlx4_FREE_RES_wrapper()
2804 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in mlx4_SW2HW_MPT_wrapper()
2822 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_MPT_wrapper()
2830 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_MPT_wrapper()
2990 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in mlx4_RST2INIT_QP_wrapper()
3039 put_res(dev, slave, mtt_base, RES_MTT); in mlx4_RST2INIT_QP_wrapper()
3053 put_res(dev, slave, mtt_base, RES_MTT); in mlx4_RST2INIT_QP_wrapper()
3114 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in mlx4_SW2HW_EQ_wrapper()
3128 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_EQ_wrapper()
3133 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_EQ_wrapper()
3167 list_for_each_entry(mtt, &tracker->slave_list[slave].res_list[RES_MTT], in get_containing_mtt()
3295 put_res(dev, slave, rmtt->com.res_id, RES_MTT); in mlx4_WRITE_MTT_wrapper()
3315 err = get_res(dev, slave, eq->mtt->com.res_id, RES_MTT, NULL); in mlx4_HW2SW_EQ_wrapper()
3324 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); in mlx4_HW2SW_EQ_wrapper()
3331 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); in mlx4_HW2SW_EQ_wrapper()
3449 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in mlx4_SW2HW_CQ_wrapper()
3460 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_CQ_wrapper()
3465 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_CQ_wrapper()
3533 err = get_res(dev, slave, cq->mtt->com.res_id, RES_MTT, &orig_mtt); in handle_resize()
3542 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in handle_resize()
3553 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); in handle_resize()
3556 put_res(dev, slave, mtt->com.res_id, RES_MTT); in handle_resize()
3560 put_res(dev, slave, mtt->com.res_id, RES_MTT); in handle_resize()
3562 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); in handle_resize()
3628 err = get_res(dev, slave, mtt_base, RES_MTT, &mtt); in mlx4_SW2HW_SRQ_wrapper()
3642 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_SRQ_wrapper()
3647 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_SRQ_wrapper()
4932 &tracker->slave_list[slave].res_list[RES_MTT]; in rem_slave_mtts()
4939 err = move_all_busy(dev, slave, RES_MTT); in rem_slave_mtts()
4957 &tracker->res_tree[RES_MTT]); in rem_slave_mtts()
4960 mlx4_release_resource(dev, slave, RES_MTT, in rem_slave_mtts()