Searched refs:opfc (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | counters.c | 979 struct mlx5_ib_op_fc *opfc; in mlx5_ib_modify_stat() local 997 opfc = &cnts->opfcs[type]; in mlx5_ib_modify_stat() 1000 if (opfc->fc) in mlx5_ib_modify_stat() 1004 if (IS_ERR(opfc->fc)) in mlx5_ib_modify_stat() 1005 return PTR_ERR(opfc->fc); in mlx5_ib_modify_stat() 1009 mlx5_fc_destroy(dev->mdev, opfc->fc); in mlx5_ib_modify_stat() 1010 opfc->fc = NULL; in mlx5_ib_modify_stat() 1015 if (!opfc->fc) in mlx5_ib_modify_stat() 1018 mlx5_ib_fs_remove_op_fc(dev, opfc, type); in mlx5_ib_modify_stat() 1019 mlx5_fc_destroy(dev->mdev, opfc->fc); in mlx5_ib_modify_stat() [all …]
|
H A D | fs.c | 871 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_add_op_fc() argument 946 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc() 952 opfc->rule[i] = mlx5_add_flow_rules(prio->flow_table, &spec[i], in mlx5_ib_fs_add_op_fc() 954 if (IS_ERR(opfc->rule[i])) { in mlx5_ib_fs_add_op_fc() 955 err = PTR_ERR(opfc->rule[i]); in mlx5_ib_fs_add_op_fc() 966 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_add_op_fc() 974 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_remove_op_fc() argument 979 for (i = 0; i < MAX_OPFC_RULES && opfc->rule[i]; i++) { in mlx5_ib_fs_remove_op_fc() 980 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_remove_op_fc()
|
H A D | mlx5_ib.h | 850 struct mlx5_ib_op_fc *opfc, 854 struct mlx5_ib_op_fc *opfc,
|