/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_counter.c | 82 u32 counter_id) in prestera_counter_stats_clear() 84 memset(&block->stats[counter_id - block->offset], 0, in prestera_counter_stats_clear() 252 struct prestera_counter_block **bl, u32 *counter_id) in prestera_counter_get() 278 *counter_id = id; in prestera_counter_get() 285 struct prestera_counter_block *block, u32 counter_id) in prestera_counter_put() 291 idr_remove(&block->counter_idr, counter_id); in prestera_counter_put() 293 prestera_counter_stats_clear(block, counter_id); in prestera_counter_put() 296 prestera_hw_counter_clear(counter->sw, block->id, counter_id); in prestera_counter_put() 419 u32 counter_id, u64 *packets, u64 *bytes) in prestera_counter_stats_get() 421 if (!block || !prestera_counter_is_ready(block, counter_id)) { in prestera_counter_stats_get() 81 prestera_counter_stats_clear(struct prestera_counter_block *block, u32 counter_id) prestera_counter_stats_clear() argument 251 prestera_counter_get(struct prestera_counter *counter, u32 client, struct prestera_counter_block **bl, u32 *counter_id) prestera_counter_get() argument 284 prestera_counter_put(struct prestera_counter *counter, struct prestera_counter_block *block, u32 counter_id) prestera_counter_put() argument 417 prestera_counter_stats_get(struct prestera_counter *counter, struct prestera_counter_block *block, u32 counter_id, u64 *packets, u64 *bytes) prestera_counter_stats_get() argument [all...] |
H A D | prestera_counter.h | 23 u32 *counter_id); 25 struct prestera_counter_block *block, u32 counter_id); 28 u32 counter_id, u64 *packets, u64 *bytes);
|
/kernel/linux/linux-5.10/include/rdma/ |
H A D | rdma_counter.h | 56 u32 qp_num, u32 counter_id); 58 u32 qp_num, u32 *counter_id); 60 u32 qp_num, u32 counter_id);
|
/kernel/linux/linux-6.6/include/rdma/ |
H A D | rdma_counter.h | 57 u32 qp_num, u32 counter_id); 59 u32 qp_num, u32 *counter_id); 61 u32 qp_num, u32 counter_id);
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | counters.c | 432 u32 counter_id) in rdma_get_counter_by_id() 437 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_COUNTER, counter_id); in rdma_get_counter_by_id() 449 * rdma_counter_bind_qpn() - Bind QP @qp_num to counter @counter_id 452 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() 467 counter = rdma_get_counter_by_id(dev, counter_id); in rdma_counter_bind_qpn() 494 * The id of new counter is returned in @counter_id 497 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() 533 if (counter_id) in rdma_counter_bind_qpn_alloc() 534 *counter_id = counter->id; in rdma_counter_bind_qpn_alloc() 552 u32 qp_num, u32 counter_id) in rdma_counter_unbind_qpn() 431 rdma_get_counter_by_id(struct ib_device *dev, u32 counter_id) rdma_get_counter_by_id() argument 451 rdma_counter_bind_qpn(struct ib_device *dev, u8 port, u32 qp_num, u32 counter_id) rdma_counter_bind_qpn() argument 496 rdma_counter_bind_qpn_alloc(struct ib_device *dev, u8 port, u32 qp_num, u32 *counter_id) rdma_counter_bind_qpn_alloc() argument 551 rdma_counter_unbind_qpn(struct ib_device *dev, u8 port, u32 qp_num, u32 counter_id) rdma_counter_unbind_qpn() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | counters.c | 465 u32 counter_id) in rdma_get_counter_by_id() 470 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_COUNTER, counter_id); in rdma_get_counter_by_id() 482 * rdma_counter_bind_qpn() - Bind QP @qp_num to counter @counter_id 485 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() 500 counter = rdma_get_counter_by_id(dev, counter_id); in rdma_counter_bind_qpn() 532 * The id of new counter is returned in @counter_id 535 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() 567 if (counter_id) in rdma_counter_bind_qpn_alloc() 568 *counter_id = counter->id; in rdma_counter_bind_qpn_alloc() 582 u32 qp_num, u32 counter_id) in rdma_counter_unbind_qpn() 464 rdma_get_counter_by_id(struct ib_device *dev, u32 counter_id) rdma_get_counter_by_id() argument 484 rdma_counter_bind_qpn(struct ib_device *dev, u32 port, u32 qp_num, u32 counter_id) rdma_counter_bind_qpn() argument 534 rdma_counter_bind_qpn_alloc(struct ib_device *dev, u32 port, u32 qp_num, u32 *counter_id) rdma_counter_bind_qpn_alloc() argument 581 rdma_counter_unbind_qpn(struct ib_device *dev, u32 port, u32 qp_num, u32 counter_id) rdma_counter_unbind_qpn() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.h | 57 #define __parse_fs_dst(dst, counter_id) \ 58 parse_fs_dst(p, (const struct mlx5_flow_destination *)dst, counter_id) 62 u32 counter_id); 281 __field(u32, counter_id) 294 __entry->counter_id = 295 rule->dest_attr.counter_id; 300 __parse_fs_dst(__entry->destination, __entry->counter_id))
|
H A D | fs_tracepoint.c | 233 u32 counter_id) in parse_fs_dst() 251 trace_seq_printf(p, "counter_id=%u\n", counter_id); in parse_fs_dst() 231 parse_fs_dst(struct trace_seq *p, const struct mlx5_flow_destination *dst, u32 counter_id) parse_fs_dst() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.h | 57 #define __parse_fs_dst(dst, counter_id) \ 58 parse_fs_dst(p, (const struct mlx5_flow_destination *)dst, counter_id) 62 u32 counter_id); 281 __field(u32, counter_id) 294 __entry->counter_id = 295 rule->dest_attr.counter_id; 300 __parse_fs_dst(__entry->destination, __entry->counter_id))
|
H A D | fs_tracepoint.c | 244 u32 counter_id) in parse_fs_dst() 268 trace_seq_printf(p, "counter_id=%u\n", counter_id); in parse_fs_dst() 242 parse_fs_dst(struct trace_seq *p, const struct mlx5_flow_destination *dst, u32 counter_id) parse_fs_dst() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | smfs.c | 39 mlx5_smfs_action_create_flow_counter(u32 counter_id) in mlx5_smfs_action_create_flow_counter() argument 41 return mlx5dr_action_create_flow_counter(counter_id); in mlx5_smfs_action_create_flow_counter()
|
H A D | smfs.h | 23 mlx5_smfs_action_create_flow_counter(u32 counter_id);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_switch.h | 213 u16 *counter_id); 216 u16 counter_id);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | mlx5_ifc_dr_ste_v1.h | 113 u8 counter_id[0x18]; member 144 u8 counter_id[0x18]; member 170 u8 counter_id[0x18]; member
|
H A D | mlx5dr.h | 115 mlx5dr_action_create_flow_counter(u32 counter_id);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_switch.h | 354 u16 *counter_id); 357 u16 counter_id);
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 946 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc() 1116 dest_arr[dest_num].counter_id = in _create_flow_rule() 1606 u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) in raw_fs_rule_add() 1656 dst[dst_num].counter_id = counter_id; in raw_fs_rule_add() 1881 static bool is_flow_counter(void *obj, u32 offset, u32 *counter_id) in is_flow_counter() argument 1891 *counter_id = MLX5_GET(dealloc_flow_counter_in, in is_flow_counter() 1894 *counter_id += offset; in is_flow_counter() 1907 u32 *offset_attr, offset = 0, counter_id = 0; in MLX5_IB_METHOD_CREATE_FLOW() local 1959 if (!is_flow_counter(devx_obj, offset, &counter_id)) in MLX5_IB_METHOD_CREATE_FLOW() 1603 raw_fs_rule_add( struct mlx5_ib_dev *dev, struct mlx5_ib_flow_matcher *fs_matcher, struct mlx5_flow_context *flow_context, struct mlx5_flow_act *flow_act, u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) raw_fs_rule_add() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | mlx5dr.h | 103 mlx5dr_action_create_flow_counter(u32 counter_id);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_private.h | 36 u32 counter_id; /* counter id (if a dedicated counter is available) */ member
|
H A D | vcap_api_client.h | 186 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 987 dest_arr[dest_num].counter_id = in _create_flow_rule() 1478 u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) in raw_fs_rule_add() 1527 dst[dst_num].counter_id = counter_id; in raw_fs_rule_add() 1902 static bool is_flow_counter(void *obj, u32 offset, u32 *counter_id) in is_flow_counter() argument 1912 *counter_id = MLX5_GET(dealloc_flow_counter_in, in is_flow_counter() 1915 *counter_id += offset; in is_flow_counter() 1928 u32 *offset_attr, offset = 0, counter_id = 0; in MLX5_IB_METHOD_CREATE_FLOW() local 1980 if (!is_flow_counter(devx_obj, offset, &counter_id)) in MLX5_IB_METHOD_CREATE_FLOW() 2020 counter_id, cmd_i in MLX5_IB_METHOD_CREATE_FLOW() 1475 raw_fs_rule_add( struct mlx5_ib_dev *dev, struct mlx5_ib_flow_matcher *fs_matcher, struct mlx5_flow_context *flow_context, struct mlx5_flow_act *flow_act, u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) raw_fs_rule_add() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | egress_lgcy.c | 133 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
H A D | fs.h | 128 u32 counter_id; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | egress_lgcy.c | 138 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge.c | 573 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_with_esw_create() 631 dests[1].counter_id = counter_id; in mlx5_esw_bridge_ingress_flow_with_esw_create() 642 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_create() 645 return mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_create() 652 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_peer_create() 674 handle = mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_peer_create() 572 mlx5_esw_bridge_ingress_flow_with_esw_create(u16 vport_num, const unsigned char *addr, struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, struct mlx5_esw_bridge *bridge, struct mlx5_eswitch *esw) mlx5_esw_bridge_ingress_flow_with_esw_create() argument 641 mlx5_esw_bridge_ingress_flow_create(u16 vport_num, const unsigned char *addr, struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, struct mlx5_esw_bridge *bridge) mlx5_esw_bridge_ingress_flow_create() argument 650 mlx5_esw_bridge_ingress_flow_peer_create(u16 vport_num, u16 esw_owner_vhca_id, const unsigned char *addr, struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, struct mlx5_esw_bridge *bridge) mlx5_esw_bridge_ingress_flow_peer_create() argument
|