Home
last modified time | relevance | path

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

/Linux-v5.4/include/rdma/
Duverbs_std_types.h165 void flow_resources_add(struct ib_uflow_resources *uflow_res,
168 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
172 struct ib_uflow_resources *uflow_res) in ib_set_flow() argument
186 uflow->resources = uflow_res; in ib_set_flow()
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dflow.c75 struct ib_uflow_resources *uflow_res; in UVERBS_HANDLER() local
168 uflow_res = flow_resources_alloc(MLX5_IB_CREATE_FLOW_MAX_FLOW_ACTIONS); in UVERBS_HANDLER()
169 if (!uflow_res) in UVERBS_HANDLER()
181 flow_resources_add(uflow_res, IB_FLOW_SPEC_ACTION_HANDLE, in UVERBS_HANDLER()
206 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER()
210 ib_uverbs_flow_resources_free(uflow_res); in UVERBS_HANDLER()
/Linux-v5.4/drivers/infiniband/core/
Duverbs_cmd.c2614 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res) in ib_uverbs_flow_resources_free() argument
2618 if (!uflow_res) in ib_uverbs_flow_resources_free()
2621 for (i = 0; i < uflow_res->collection_num; i++) in ib_uverbs_flow_resources_free()
2622 atomic_dec(&uflow_res->collection[i]->usecnt); in ib_uverbs_flow_resources_free()
2624 for (i = 0; i < uflow_res->counters_num; i++) in ib_uverbs_flow_resources_free()
2625 atomic_dec(&uflow_res->counters[i]->usecnt); in ib_uverbs_flow_resources_free()
2627 kfree(uflow_res->collection); in ib_uverbs_flow_resources_free()
2628 kfree(uflow_res->counters); in ib_uverbs_flow_resources_free()
2629 kfree(uflow_res); in ib_uverbs_flow_resources_free()
2633 void flow_resources_add(struct ib_uflow_resources *uflow_res, in flow_resources_add() argument
[all …]
Duverbs.h225 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);