Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/drivers/infiniband/core/ !
Duverbs_cmd.c2594 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res) in ib_uverbs_flow_resources_free() argument
2598 if (!uflow_res) in ib_uverbs_flow_resources_free()
2601 for (i = 0; i < uflow_res->collection_num; i++) in ib_uverbs_flow_resources_free()
2602 atomic_dec(&uflow_res->collection[i]->usecnt); in ib_uverbs_flow_resources_free()
2604 for (i = 0; i < uflow_res->counters_num; i++) in ib_uverbs_flow_resources_free()
2605 atomic_dec(&uflow_res->counters[i]->usecnt); in ib_uverbs_flow_resources_free()
2607 kfree(uflow_res->collection); in ib_uverbs_flow_resources_free()
2608 kfree(uflow_res->counters); in ib_uverbs_flow_resources_free()
2609 kfree(uflow_res); in ib_uverbs_flow_resources_free()
2613 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-6.6.21/drivers/infiniband/hw/mlx5/ !
Dfs.c1912 struct ib_uflow_resources *uflow_res; in UVERBS_HANDLER() local
1970 uflow_res = flow_resources_alloc(MLX5_IB_CREATE_FLOW_MAX_FLOW_ACTIONS); in UVERBS_HANDLER()
1971 if (!uflow_res) in UVERBS_HANDLER()
1983 flow_resources_add(uflow_res, IB_FLOW_SPEC_ACTION_HANDLE, in UVERBS_HANDLER()
2005 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER()
2009 ib_uverbs_flow_resources_free(uflow_res); in UVERBS_HANDLER()