Lines Matching refs:RES_COUNTER
299 case RES_COUNTER: return "RES_COUNTER"; in resource_str()
544 if (i == RES_COUNTER) in mlx4_init_resource_tracker()
622 case RES_COUNTER: in mlx4_init_resource_tracker()
871 case RES_COUNTER: in mlx4_resource_type_to_str()
985 r = find_res(dev, counter_index, RES_COUNTER); in handle_existing_counter()
1011 &tracker->slave_list[slave].res_list[RES_COUNTER], in handle_unexisting_counter()
1213 case RES_COUNTER: in alloc_tr()
1250 &tracker->slave_list[slave].res_list[RES_COUNTER], in mlx4_calc_vf_counters()
1454 case RES_COUNTER: in remove_ok()
2251 err = mlx4_grant_resource(dev, slave, RES_COUNTER, 1, 0); in counter_alloc_res()
2257 mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); in counter_alloc_res()
2261 err = add_res_range(dev, slave, index, 1, RES_COUNTER, port); in counter_alloc_res()
2264 mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); in counter_alloc_res()
2341 case RES_COUNTER: in mlx4_ALLOC_RES_wrapper()
2579 err = rem_res_range(dev, slave, index, 1, RES_COUNTER, 0); in counter_free_res()
2584 mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); in counter_free_res()
2655 case RES_COUNTER: in mlx4_FREE_RES_wrapper()
4573 err = get_res(dev, slave, index, RES_COUNTER, NULL); in mlx4_QUERY_IF_STAT_wrapper()
4578 put_res(dev, slave, index, RES_COUNTER); in mlx4_QUERY_IF_STAT_wrapper()
5178 &tracker->slave_list[slave].res_list[RES_COUNTER]; in rem_slave_counters()
5185 err = move_all_busy(dev, slave, RES_COUNTER); in rem_slave_counters()
5203 &tracker->res_tree[RES_COUNTER]); in rem_slave_counters()
5212 mlx4_release_resource(dev, slave, RES_COUNTER, 1, 0); in rem_slave_counters()