Lines Matching refs:res_id
60 u32 res_id; member
287 static void *find_res(struct mlx4_dev *dev, int res_id, in find_res() argument
293 res_id); in find_res()
296 static int get_res(struct mlx4_dev *dev, int slave, int res_id, in get_res() argument
304 r = find_res(dev, res_id, type); in get_res()
323 ResourceType(type), r->res_id); in get_res()
335 int res_id, int *slave) in mlx4_get_slave_from_resource_id() argument
340 int id = res_id; in mlx4_get_slave_from_resource_id()
356 static void put_res(struct mlx4_dev *dev, int slave, int res_id, in put_res() argument
362 r = find_res(dev, res_id, type); in put_res()
376 ret->com.res_id = id; in alloc_qp_tr()
393 ret->com.res_id = id; in alloc_mtt_tr()
409 ret->com.res_id = id; in alloc_mpt_tr()
424 ret->com.res_id = id; in alloc_eq_tr()
438 ret->com.res_id = id; in alloc_cq_tr()
453 ret->com.res_id = id; in alloc_srq_tr()
468 ret->com.res_id = id; in alloc_counter_tr()
729 __func__, r->com.res_id); in qp_res_start_move_to()
737 mlx4_dbg(dev, "failed RES_QP, 0x%x\n", r->com.res_id); in qp_res_start_move_to()
747 r->com.res_id); in qp_res_start_move_to()
1605 int res_start = mtt->com.res_id; in check_mtt_range()
1652 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_MPT_wrapper()
1660 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_MPT_wrapper()
1874 int res_id = (slave << 8) | eqn; in mlx4_SW2HW_EQ_wrapper() local
1881 err = add_res_range(dev, slave, res_id, 1, RES_EQ, 0); in mlx4_SW2HW_EQ_wrapper()
1884 err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_HW, &eq); in mlx4_SW2HW_EQ_wrapper()
1902 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_EQ_wrapper()
1903 res_end_move(dev, slave, RES_EQ, res_id); in mlx4_SW2HW_EQ_wrapper()
1907 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_EQ_wrapper()
1909 res_abort_move(dev, slave, RES_EQ, res_id); in mlx4_SW2HW_EQ_wrapper()
1911 rem_res_range(dev, slave, res_id, 1, RES_EQ, 0); in mlx4_SW2HW_EQ_wrapper()
1972 put_res(dev, slave, rmtt->com.res_id, RES_MTT); in mlx4_WRITE_MTT_wrapper()
1984 int res_id = eqn | (slave << 8); in mlx4_HW2SW_EQ_wrapper() local
1988 err = eq_res_start_move_to(dev, slave, res_id, RES_EQ_RESERVED, &eq); in mlx4_HW2SW_EQ_wrapper()
1992 err = get_res(dev, slave, eq->mtt->com.res_id, RES_MTT, NULL); in mlx4_HW2SW_EQ_wrapper()
2001 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); in mlx4_HW2SW_EQ_wrapper()
2002 res_end_move(dev, slave, RES_EQ, res_id); in mlx4_HW2SW_EQ_wrapper()
2003 rem_res_range(dev, slave, res_id, 1, RES_EQ, 0); in mlx4_HW2SW_EQ_wrapper()
2008 put_res(dev, slave, eq->mtt->com.res_id, RES_MTT); in mlx4_HW2SW_EQ_wrapper()
2010 res_abort_move(dev, slave, RES_EQ, res_id); in mlx4_HW2SW_EQ_wrapper()
2022 int res_id; in mlx4_GEN_EQE() local
2035 res_id = (slave << 8) | event_eq->eqn; in mlx4_GEN_EQE()
2036 err = get_res(dev, slave, res_id, RES_EQ, &req); in mlx4_GEN_EQE()
2064 put_res(dev, slave, res_id, RES_EQ); in mlx4_GEN_EQE()
2070 put_res(dev, slave, res_id, RES_EQ); in mlx4_GEN_EQE()
2084 int res_id = eqn | (slave << 8); in mlx4_QUERY_EQ_wrapper() local
2088 err = get_res(dev, slave, res_id, RES_EQ, &eq); in mlx4_QUERY_EQ_wrapper()
2100 put_res(dev, slave, res_id, RES_EQ); in mlx4_QUERY_EQ_wrapper()
2131 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_CQ_wrapper()
2136 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_CQ_wrapper()
2204 err = get_res(dev, slave, cq->mtt->com.res_id, RES_MTT, &orig_mtt); in handle_resize()
2224 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); in handle_resize()
2227 put_res(dev, slave, mtt->com.res_id, RES_MTT); in handle_resize()
2231 put_res(dev, slave, mtt->com.res_id, RES_MTT); in handle_resize()
2233 put_res(dev, slave, orig_mtt->com.res_id, RES_MTT); in handle_resize()
2313 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_SRQ_wrapper()
2318 put_res(dev, slave, mtt->com.res_id, RES_MTT); in mlx4_SW2HW_SRQ_wrapper()
2640 r->res_id); in _move_all_busy()
2697 qpn = qp->com.res_id; in rem_slave_qps()
2705 qp->com.res_id); in rem_slave_qps()
2768 srqn = srq->com.res_id; in rem_slave_srqs()
2834 cqn = cq->com.res_id; in rem_slave_cqs()
2897 mptn = mpt->com.res_id; in rem_slave_mrs()
2965 base = mtt->com.res_id; in rem_slave_mtts()
3014 eqn = eq->com.res_id; in rem_slave_eqs()