Lines Matching defs:res_id
71 u64 res_id;
229 static void *res_tracker_lookup(struct rb_root *root, u64 res_id)
237 if (res_id < res->res_id)
239 else if (res_id > res->res_id)
257 if (res->res_id < this->res_id)
259 else if (res->res_id > this->res_id)
774 static void *find_res(struct mlx4_dev *dev, u64 res_id,
780 res_id);
783 static int get_res(struct mlx4_dev *dev, int slave, u64 res_id,
791 r = find_res(dev, res_id, type);
820 u64 res_id, int *slave)
825 int id = res_id;
841 static void put_res(struct mlx4_dev *dev, int slave, u64 res_id,
847 r = find_res(dev, res_id, type);
861 ret->com.res_id = id;
879 ret->com.res_id = id;
895 ret->com.res_id = id;
910 ret->com.res_id = id;
924 ret->com.res_id = id;
939 ret->com.res_id = id;
954 ret->com.res_id = id;
968 ret->com.res_id = id;
982 ret->com.res_id = id;
1276 __func__, r->com.res_id);
1284 mlx4_dbg(dev, "failed RES_QP, 0x%llx\n", r->com.res_id);
1294 r->com.res_id);
2491 int res_start = mtt->com.res_id;
2567 put_res(dev, slave, mtt->com.res_id, RES_MTT);
2575 put_res(dev, slave, mtt->com.res_id, RES_MTT);
2834 int res_id = (slave << 8) | eqn;
2841 err = add_res_range(dev, slave, res_id, 1, RES_EQ, 0);
2844 err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_HW, &eq);
2862 put_res(dev, slave, mtt->com.res_id, RES_MTT);
2863 res_end_move(dev, slave, RES_EQ, res_id);
2867 put_res(dev, slave, mtt->com.res_id, RES_MTT);
2869 res_abort_move(dev, slave, RES_EQ, res_id);
2871 rem_res_range(dev, slave, res_id, 1, RES_EQ, 0);
3004 put_res(dev, slave, rmtt->com.res_id, RES_MTT);
3016 int res_id = eqn | (slave << 8);
3020 err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_RESERVED, &eq);
3024 err = get_res(dev, slave, eq->mtt->com.res_id, RES_MTT, NULL);
3033 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT);
3034 res_end_move(dev, slave, RES_EQ, res_id);
3035 rem_res_range(dev, slave, res_id, 1, RES_EQ, 0);
3040 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT);
3042 res_abort_move(dev, slave, RES_EQ, res_id);
3054 int res_id;
3067 res_id = (slave << 8) | event_eq->eqn;
3068 err = get_res(dev, slave, res_id, RES_EQ, &req);
3096 put_res(dev, slave, res_id, RES_EQ);
3102 put_res(dev, slave, res_id, RES_EQ);
3116 int res_id = eqn | (slave << 8);
3120 err = get_res(dev, slave, res_id, RES_EQ, &eq);
3132 put_res(dev, slave, res_id, RES_EQ);
3163 put_res(dev, slave, mtt->com.res_id, RES_MTT);
3168 put_res(dev, slave, mtt->com.res_id, RES_MTT);
3236 err = get_res(dev, slave, cq->mtt->com.res_id, RES_MTT, &orig_mtt);
3256 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT);
3259 put_res(dev, slave, mtt->com.res_id, RES_MTT);
3263 put_res(dev, slave, mtt->com.res_id, RES_MTT);
3265 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT);
3345 put_res(dev, slave, mtt->com.res_id, RES_MTT);
3350 put_res(dev, slave, mtt->com.res_id, RES_MTT);
4228 r->res_id);
4285 qpn = qp->com.res_id;
4359 srqn = srq->com.res_id;
4425 cqn = cq->com.res_id;
4488 mptn = mpt->com.res_id;
4556 base = mtt->com.res_id;
4606 base = fs_rule->com.res_id;
4659 eqn = eq->com.res_id;
4721 index = counter->com.res_id;
4752 xrcdn = xrcd->com.res_id;