Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A 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()
419 u32 counter_id, u64 *packets, u64 *bytes) in prestera_counter_stats_get() argument
428 *packets = block->stats[counter_id - block->offset].packets; in prestera_counter_stats_get()
429 *bytes = block->stats[counter_id - block->offset].bytes; in prestera_counter_stats_get()
[all …]
A Dprestera_counter.h23 u32 *counter_id);
25 struct prestera_counter_block *block, u32 counter_id);
28 u32 counter_id, u64 *packets, u64 *bytes);
A Dprestera_hw.h245 u32 counter_id);
/linux-6.3-rc2/include/rdma/
A Drdma_counter.h57 u32 qp_num, u32 counter_id);
59 u32 qp_num, u32 *counter_id);
61 u32 qp_num, u32 counter_id);
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/diag/
A 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))
A Dfs_tracepoint.c244 u32 counter_id) in parse_fs_dst() argument
268 trace_seq_printf(p, "counter_id=%u\n", counter_id); in parse_fs_dst()
/linux-6.3-rc2/drivers/infiniband/core/
A 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/
A 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()
A Dsmfs.h23 mlx5_smfs_action_create_flow_counter(u32 counter_id);
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Dmlx5_ifc_dr_ste_v1.h113 u8 counter_id[0x18]; member
144 u8 counter_id[0x18]; member
170 u8 counter_id[0x18]; member
A Dmlx5dr.h114 mlx5dr_action_create_flow_counter(u32 counter_id);
A Dfs_dr.c512 id = dst->dest_attr.counter_id; in mlx5_cmd_dr_create_fte()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_switch.h339 u16 *counter_id);
342 u16 counter_id);
/linux-6.3-rc2/drivers/net/ethernet/microchip/vcap/
A Dvcap_api_private.h36 u32 counter_id; /* counter id (if a dedicated counter is available) */ member
A Dvcap_api_client.h186 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id);
A Dvcap_api.c1523 ri->counter_id, 0); in vcap_read_rule()
1565 ri->counter_id, 0); in vcap_write_counter()
2885 ri->counter_id, 0); in vcap_read_counter()
3207 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id) in vcap_rule_set_counter_id() argument
3211 ri->counter_id = counter_id; in vcap_rule_set_counter_id()
A Dvcap_api_kunit.c1437 .counter_id = 1002, in vcap_api_set_rule_counter_test()
1446 .counter_id = 2002, in vcap_api_set_rule_counter_test()
1490 .counter_id = 1011, in vcap_api_get_rule_counter_test()
1499 .counter_id = 2012, in vcap_api_get_rule_counter_test()
A Dvcap_api_debugfs.c246 ri->counter_id, ri->counter.value, ri->counter.sticky); in vcap_show_admin_rule()
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dfs.c948 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc()
1118 dest_arr[dest_num].counter_id = in _create_flow_rule()
1608 u32 counter_id, void *cmd_in, int inlen, int dest_id, int dest_type) in raw_fs_rule_add() argument
1658 dst[dst_num].counter_id = counter_id; in raw_fs_rule_add()
1883 static bool is_flow_counter(void *obj, u32 offset, u32 *counter_id) in is_flow_counter() argument
1893 *counter_id = MLX5_GET(dealloc_flow_counter_in, in is_flow_counter()
1896 *counter_id += offset; in is_flow_counter()
1909 u32 *offset_attr, offset = 0, counter_id = 0; in UVERBS_HANDLER() local
1961 if (!is_flow_counter(devx_obj, offset, &counter_id)) in UVERBS_HANDLER()
2001 counter_id, cmd_in, inlen, dest_id, dest_type); in UVERBS_HANDLER()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/
A 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Degress_lgcy.c138 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
A Dingress_lgcy.c263 drop_ctr_dst.counter_id = mlx5_fc_id(counter); in esw_acl_ingress_lgcy_setup()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_fs.c223 dest[1].counter_id = mlx5_fc_id(rx->fc->cnt); in rx_create()
736 dest.counter_id = mlx5_fc_id(tx->fc->cnt); in tx_add_rule()
801 dest[dstn].counter_id = mlx5_fc_id(tx->fc->drop); in tx_add_policy()
870 dest[dstn].counter_id = mlx5_fc_id(rx->fc->drop); in rx_add_policy()
A 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-6.3-rc2/include/linux/mlx5/
A Dfs.h160 u32 counter_id; member

Completed in 70 milliseconds

12