Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H 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 …]
H A Dprestera_counter.h23 u32 *counter_id);
25 struct prestera_counter_block *block, u32 counter_id);
28 u32 counter_id, u64 *packets, u64 *bytes);
H A Dprestera_hw.h245 u32 counter_id);
/openbmc/linux/include/rdma/
H A Drdma_counter.h57 u32 qp_num, u32 counter_id);
59 u32 qp_num, u32 *counter_id);
61 u32 qp_num, u32 counter_id);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H 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))
H 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()
/openbmc/linux/drivers/infiniband/core/
H 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H 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()
H A Dsmfs.h23 mlx5_smfs_action_create_flow_counter(u32 counter_id);
H A Dmacsec_fs.c500 dest.counter_id = mlx5_fc_id(tx_tables->check_miss_rule_counter); in macsec_fs_tx_create()
522 dest.counter_id = mlx5_fc_id(tx_tables->check_rule_counter); in macsec_fs_tx_create()
1203 roce_dest[dstn].counter_id = mlx5_fc_id(rx_tables->check_rule_counter); in macsec_fs_rx_create_check_decap_rule()
1595 dest.counter_id = mlx5_fc_id(rx_tables->check_miss_rule_counter); in macsec_fs_rx_create()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Dmlx5_ifc_dr_ste_v1.h113 u8 counter_id[0x18]; member
144 u8 counter_id[0x18]; member
170 u8 counter_id[0x18]; member
H A Dmlx5dr.h115 mlx5dr_action_create_flow_counter(u32 counter_id);
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_private.h36 u32 counter_id; /* counter id (if a dedicated counter is available) */ member
H A Dvcap_api_client.h186 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id);
H A Dvcap_api.c1556 ri->counter_id, 0); in vcap_read_rule()
1598 ri->counter_id, 0); in vcap_write_counter()
2918 ri->counter_id, 0); in vcap_read_counter()
3240 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id) in vcap_rule_set_counter_id() argument
3244 ri->counter_id = counter_id; in vcap_rule_set_counter_id()
H A Dvcap_api_kunit.c1473 .counter_id = 1002, in vcap_api_set_rule_counter_test()
1482 .counter_id = 2002, in vcap_api_set_rule_counter_test()
1526 .counter_id = 1011, in vcap_api_get_rule_counter_test()
1535 .counter_id = 2012, in vcap_api_get_rule_counter_test()
H A Dvcap_api_debugfs.c246 ri->counter_id, ri->counter.value, ri->counter.sticky); in vcap_show_admin_rule()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_switch.h354 u16 *counter_id);
357 u16 counter_id);
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dfs.c946 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() argument
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 UVERBS_HANDLER() local
1959 if (!is_flow_counter(devx_obj, offset, &counter_id)) in UVERBS_HANDLER()
1999 counter_id, cmd_in, inlen, dest_id, dest_type); in UVERBS_HANDLER()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Degress_lgcy.c138 drop_ctr_dst.counter_id = mlx5_fc_id(drop_counter); in esw_acl_egress_lgcy_setup()
H A Dingress_lgcy.c263 drop_ctr_dst.counter_id = mlx5_fc_id(counter); in esw_acl_ingress_lgcy_setup()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge.c573 struct mlx5_esw_bridge_vlan *vlan, u32 counter_id, in mlx5_esw_bridge_ingress_flow_with_esw_create() argument
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() argument
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() argument
674 handle = mlx5_esw_bridge_ingress_flow_with_esw_create(vport_num, addr, vlan, counter_id, in mlx5_esw_bridge_ingress_flow_peer_create()
/openbmc/linux/include/linux/mlx5/
H A Dfs.h166 u32 counter_id; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c194 dest.counter_id = mlx5_fc_id(flow_counter); in ipsec_rx_status_drop_create()
451 dest[1].counter_id = mlx5_fc_id(rx->fc->cnt); in rx_create()
638 dest.counter_id = mlx5_fc_id(tx->fc->cnt); in ipsec_counter_rule_tx()
1393 dest[1].counter_id = mlx5_fc_id(counter); in rx_add_rule()
1489 dest[1].counter_id = mlx5_fc_id(counter); in tx_add_rule()
1562 dest[dstn].counter_id = mlx5_fc_id(tx->fc->drop); in tx_add_policy()
1640 dest[dstn].counter_id = mlx5_fc_id(rx->fc->drop); in rx_add_policy()
/openbmc/qemu/hw/timer/
H A Dtrace-events60 nrf51_timer_set_count(uint8_t timer_id, uint8_t counter_id, uint32_t value) "timer %u counter %u co…

12