Home
last modified time | relevance | path

Searched refs:uflow_res (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/include/rdma/
Duverbs_std_types.h141 void flow_resources_add(struct ib_uflow_resources *uflow_res,
144 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
148 struct ib_uflow_resources *uflow_res) in ib_set_flow() argument
162 uflow->resources = uflow_res; in ib_set_flow()
/Linux-v5.10/drivers/infiniband/core/
Duverbs_cmd.c2581 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res) in ib_uverbs_flow_resources_free() argument
2585 if (!uflow_res) in ib_uverbs_flow_resources_free()
2588 for (i = 0; i < uflow_res->collection_num; i++) in ib_uverbs_flow_resources_free()
2589 atomic_dec(&uflow_res->collection[i]->usecnt); in ib_uverbs_flow_resources_free()
2591 for (i = 0; i < uflow_res->counters_num; i++) in ib_uverbs_flow_resources_free()
2592 atomic_dec(&uflow_res->counters[i]->usecnt); in ib_uverbs_flow_resources_free()
2594 kfree(uflow_res->collection); in ib_uverbs_flow_resources_free()
2595 kfree(uflow_res->counters); in ib_uverbs_flow_resources_free()
2596 kfree(uflow_res); in ib_uverbs_flow_resources_free()
2600 void flow_resources_add(struct ib_uflow_resources *uflow_res, in flow_resources_add() argument
[all …]
Duverbs.h222 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dfs.c1932 struct ib_uflow_resources *uflow_res; in UVERBS_HANDLER() local
1990 uflow_res = flow_resources_alloc(MLX5_IB_CREATE_FLOW_MAX_FLOW_ACTIONS); in UVERBS_HANDLER()
1991 if (!uflow_res) in UVERBS_HANDLER()
2003 flow_resources_add(uflow_res, IB_FLOW_SPEC_ACTION_HANDLE, in UVERBS_HANDLER()
2025 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER()
2029 ib_uverbs_flow_resources_free(uflow_res); in UVERBS_HANDLER()