Home
last modified time | relevance | path

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

12

/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()
296 prestera_hw_counter_clear(counter->sw, block->id, counter_id); in prestera_counter_put()
418 u32 counter_id, u64 *packets, u64 *bytes) in prestera_counter_stats_get() argument
420 if (!block || !prestera_counter_is_ready(block, counter_id)) { 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);
H A Dprestera_hw.c2374 u32 counter_id) in prestera_hw_counter_clear() argument
2378 .num_counters = __cpu_to_le32(counter_id) in prestera_hw_counter_clear()
/linux/include/rdma/
H A Drdma_counter.h59 u32 qp_num, u32 counter_id);
61 u32 qp_num, u32 *counter_id);
63 u32 qp_num, u32 counter_id);
/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 =
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()
/linux/drivers/infiniband/core/
H A Dcounters.c475 u32 counter_id) in rdma_get_counter_by_id() argument
480 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_COUNTER, counter_id); in rdma_get_counter_by_id()
492 * rdma_counter_bind_qpn() - Bind QP @qp_num to counter @counter_id
495 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() argument
510 counter = rdma_get_counter_by_id(dev, counter_id); in rdma_counter_bind_qpn()
542 * The id of new counter is returned in @counter_id
545 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() argument
577 if (counter_id) in rdma_counter_bind_qpn_alloc()
578 *counter_id = counter->id; in rdma_counter_bind_qpn_alloc()
592 u32 qp_num, u32 counter_id) in rdma_counter_unbind_qpn() argument
[all...]
/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);
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
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.h113 mlx5dr_action_create_flow_counter(u32 counter_id);
H A Ddr_action.c1321 mlx5dr_action_create_flow_counter(u32 counter_id) in mlx5dr_action_create_flow_counter() argument
1329 action->ctr->ctr_id = counter_id; in mlx5dr_action_create_flow_counter()
/linux/include/uapi/linux/
H A Dvmclock-abi.h69 __u8 counter_id; /* Matches VIRTIO_RTC_COUNTER_xxx except INVALID */ member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c540 * @counter_id: counter acquired counter id
547 mlx5_fc_local_create(u32 counter_id, u32 offset, u32 bulk_size) in mlx5_fc_local_create() argument
562 counter->id = counter_id; in mlx5_fc_local_create()
563 fc_bulk->base_id = counter_id - offset; in mlx5_fc_local_create()
/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_kunit.c1468 .counter_id = 1002, in vcap_api_set_rule_counter_test()
1477 .counter_id = 2002, in vcap_api_set_rule_counter_test()
1521 .counter_id = 1011, in vcap_api_get_rule_counter_test()
1530 .counter_id = 2012, in vcap_api_get_rule_counter_test()
H A Dvcap_api.c1556 ri->counter_id, 0); in vcap_read_rule()
1598 ri->counter_id, 0); in vcap_write_counter()
2930 ri->counter_id, 0); in vcap_read_counter()
3252 void vcap_rule_set_counter_id(struct vcap_rule *rule, u32 counter_id) in vcap_rule_set_counter_id() argument
3256 ri->counter_id = counter_id; in vcap_rule_set_counter_id()
H A Dvcap_api_debugfs.c246 ri->counter_id, ri->counter.value, ri->counter.sticky); in vcap_show_admin_rule()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_switch.h341 u16 *counter_id);
344 u16 counter_id);
H A Dice_switch.c4559 * @counter_id: counter index returned by AQ call
4563 u16 *counter_id) in ice_alloc_res_cntr() argument
4577 *counter_id = le16_to_cpu(buf->elem[0].e.sw_resp); in ice_alloc_res_cntr()
4587 * @counter_id: counter ID resource which needs to be freed
4591 u16 counter_id) in ice_free_res_cntr() argument
4600 buf->elem[0].e.sw_resp = cpu_to_le16(counter_id); in ice_free_res_cntr()
/linux/drivers/ptp/
H A Dptp_vmclock.c336 st->clk->counter_id == VMCLOCK_COUNTER_ARM_VCNT) { in vmclock_ptp_register()
340 st->clk->counter_id == VMCLOCK_COUNTER_X86_TSC) { in vmclock_ptp_register()
/linux/drivers/infiniband/hw/mlx5/
H A Dfs.c2417 is_flow_counter(void *obj, u32 offset, u32 *counter_id, u32 *fc_bulk_size) in is_flow_counter() argument
2428 *counter_id = MLX5_GET(dealloc_flow_counter_in, in is_flow_counter()
2431 *counter_id += offset; in is_flow_counter()
2477 u32 *offset_attr, fc_bulk_size, offset = 0, counter_id = 0; in UVERBS_HANDLER() local
2497 if (!is_flow_counter(devx_obj, offset, &counter_id, &fc_bulk_size)) in UVERBS_HANDLER()
2499 counter = mlx5_fc_local_create(counter_id, offset, fc_bulk_size); in UVERBS_HANDLER()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h775 u8 counter_id; member

12