Searched refs:uflow_res (Results 1 – 4 of 4) sorted by relevance
141 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() argument162 uflow->resources = uflow_res; in ib_set_flow()
2595 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res) in ib_uverbs_flow_resources_free() argument2599 if (!uflow_res) in ib_uverbs_flow_resources_free()2602 for (i = 0; i < uflow_res->collection_num; i++) in ib_uverbs_flow_resources_free()2603 atomic_dec(&uflow_res->collection[i]->usecnt); in ib_uverbs_flow_resources_free()2605 for (i = 0; i < uflow_res->counters_num; i++) in ib_uverbs_flow_resources_free()2606 atomic_dec(&uflow_res->counters[i]->usecnt); in ib_uverbs_flow_resources_free()2608 kfree(uflow_res->collection); in ib_uverbs_flow_resources_free()2609 kfree(uflow_res->counters); in ib_uverbs_flow_resources_free()2610 kfree(uflow_res); in ib_uverbs_flow_resources_free()2614 void flow_resources_add(struct ib_uflow_resources *uflow_res, in flow_resources_add() argument[all …]
222 void ib_uverbs_flow_resources_free(struct ib_uflow_resources *uflow_res);
1912 struct ib_uflow_resources *uflow_res; in UVERBS_HANDLER() local1970 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()