Home
last modified time | relevance | path

Searched refs:counter_id (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c82 u32 counter_id) in prestera_counter_stats_clear() argument
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() argument
278 *counter_id = id; in prestera_counter_get()
285 struct prestera_counter_block *block, u32 counter_id) in prestera_counter_put() argument
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() argument
421 if (!block || !prestera_counter_is_ready(block, counter_id)) { in prestera_counter_stats_get()
[all …]
Dprestera_counter.h23 u32 *counter_id);
25 struct prestera_counter_block *block, u32 counter_id);
28 u32 counter_id, u64 *packets, u64 *bytes);
Dprestera_hw.h245 u32 counter_id);
Dprestera_hw.c2377 u32 counter_id) in prestera_hw_counter_clear() argument
2381 .num_counters = __cpu_to_le32(counter_id) in prestera_hw_counter_clear()
/Linux-v6.1/include/rdma/
Drdma_counter.h57 u32 qp_num, u32 counter_id);
59 u32 qp_num, u32 *counter_id);
61 u32 qp_num, u32 counter_id);
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.h57 #define __parse_fs_dst(dst, counter_id) \ argument
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))
Dfs_tracepoint.c233 u32 counter_id) in parse_fs_dst() argument
257 trace_seq_printf(p, "counter_id=%u\n", counter_id); in parse_fs_dst()
/Linux-v6.1/drivers/infiniband/core/
Dcounters.c465 u32 counter_id) in rdma_get_counter_by_id() argument
470 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_COUNTER, counter_id); in rdma_get_counter_by_id()
485 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() argument
500 counter = rdma_get_counter_by_id(dev, counter_id); in rdma_counter_bind_qpn()
535 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() argument
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() argument
601 if (!qp->counter || qp->counter->id != counter_id || in rdma_counter_unbind_qpn()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dsmfs.c39 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()
Dsmfs.h23 mlx5_smfs_action_create_flow_counter(u32 counter_id);
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_meter.c107 dest[0].counter_id = mlx5_fc_id(red_counter); in mlx5e_post_meter_rules_create()
124 dest[1].counter_id = mlx5_fc_id(green_counter); in mlx5e_post_meter_rules_create()
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_switch.h339 u16 *counter_id);
342 u16 counter_id);
Dice_switch.c4461 u16 *counter_id) in ice_alloc_res_cntr() argument
4482 *counter_id = le16_to_cpu(buf->elem[0].e.sw_resp); in ice_alloc_res_cntr()
4499 u16 counter_id) in ice_free_res_cntr() argument
4514 buf->elem[0].e.sw_resp = cpu_to_le16(counter_id); in ice_free_res_cntr()
/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dfs.c949 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc()
1119 dest_arr[dest_num].counter_id = in _create_flow_rule()
1609 u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) in raw_fs_rule_add() argument
1659 dst[dst_num].counter_id = counter_id; in raw_fs_rule_add()
1884 static bool is_flow_counter(void *obj, u32 offset, u32 *counter_id) in is_flow_counter() argument
1894 *counter_id = MLX5_GET(dealloc_flow_counter_in, in is_flow_counter()
1897 *counter_id += offset; in is_flow_counter()
1910 u32 *offset_attr, offset = 0, counter_id = 0; in UVERBS_HANDLER() local
1962 if (!is_flow_counter(devx_obj, offset, &counter_id)) in UVERBS_HANDLER()
2002 counter_id, cmd_in, inlen, dest_id, dest_type); in UVERBS_HANDLER()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dmlx5_ifc_dr_ste_v1.h113 u8 counter_id[0x18]; member
144 u8 counter_id[0x18]; member
Dmlx5dr.h114 mlx5dr_action_create_flow_counter(u32 counter_id);
Dfs_dr.c491 id = dst->dest_attr.counter_id; in mlx5_cmd_dr_create_fte()
Ddr_action.c1063 mlx5dr_action_create_flow_counter(u32 counter_id) in mlx5dr_action_create_flow_counter() argument
1071 action->ctr->ctr_id = counter_id; in mlx5dr_action_create_flow_counter()
Ddr_cmd.c804 fte->dest_arr[i].counter_id); in mlx5dr_cmd_set_fte()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c658 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_with_esw_create() argument
716 dests[1].counter_id = counter_id; in mlx5_esw_bridge_ingress_flow_with_esw_create()
727 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_create() argument
730 return mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_create()
736 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_peer_create() argument
747 handle = mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_peer_create()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Degress_lgcy.c133 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
Dingress_lgcy.c241 drop_ctr_dst.counter_id = mlx5_fc_id(counter); in esw_acl_ingress_lgcy_setup()
/Linux-v6.1/include/linux/mlx5/
Dfs.h152 u32 counter_id; member
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec_fs.c350 dest.counter_id = mlx5_fc_id(tx_tables->check_miss_rule_counter); in macsec_fs_tx_create()
372 dest.counter_id = mlx5_fc_id(tx_tables->check_rule_counter); in macsec_fs_tx_create()
874 dest->counter_id = mlx5_fc_id(rx_tables->check_rule_counter); in macsec_fs_rx_create_check_decap_rule()
983 dest.counter_id = mlx5_fc_id(rx_tables->check_miss_rule_counter); in macsec_fs_rx_create()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h746 u8 counter_id; member

12