Home
last modified time | relevance | path

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

/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()
251 struct prestera_counter_block **bl, u32 *counter_id) in prestera_counter_get() argument
277 *counter_id = id; in prestera_counter_get()
284 struct prestera_counter_block *block, u32 counter_id) in prestera_counter_put() argument
290 idr_remove(&block->counter_idr, counter_id); in prestera_counter_put()
292 prestera_counter_stats_clear(block, counter_id); in prestera_counter_put()
295 prestera_hw_counter_clear(counter->sw, block->id, counter_id); in prestera_counter_put()
417 u32 counter_id, u64 *packets, u64 *bytes) in prestera_counter_stats_get() argument
419 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/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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c570 mlx5_fc_local_create(u32 counter_id, u32 offset, u32 bulk_size) in mlx5_fc_local_create() argument
585 counter->id = counter_id; in mlx5_fc_local_create()
587 mlx5_fc_bulk_init(fc_bulk, 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);
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
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()
H A Ddr_types.h1515 u32 counter_id; member
H A Ddr_ste_v1.c249 MLX5_SET(ste_match_bwc_v1, hw_ste_p, counter_id, ctr_id); in dr_ste_v1_set_counter_id()
/linux/drivers/infiniband/hw/ionic/
H A Dionic_hw_stats.c318 u32 counter_id) in ionic_get_qp_stats() argument
328 cntr = xa_load(&cs->xa_counters, counter_id); in ionic_get_qp_stats()
/linux/drivers/ptp/
H A Dptp_vmclock.c343 st->clk->counter_id == VMCLOCK_COUNTER_ARM_VCNT) { in vmclock_ptp_register()
347 st->clk->counter_id == VMCLOCK_COUNTER_X86_TSC) { in vmclock_ptp_register()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h775 u8 counter_id; member
H A Dhclge_main.c5685 action->counter_id >= HCLGE_FD_COUNTER_MAX_SIZE_DEV_V2 ? in hclge_fd_ad_config()
5695 HCLGE_FD_AD_COUNTER_NUM_L_S, action->counter_id); in hclge_fd_ad_config()
5913 ad_data.counter_id = rule->vf_id % in hclge_config_action()
5917 ad_data.counter_id = 0; in hclge_config_action()
/linux/drivers/net/ethernet/sfc/
H A Dmae.c379 rc = TABLE_HOOK_RESP(meta_ct, counter_id, COUNTER_ID); in efx_mae_table_hook_ct()
2008 rc = TABLE_POPULATE_RESP_U24(resp, ct, counter_id, conn->cnt->fw_id); in efx_mae_insert_ct()
/linux/tools/power/x86/turbostat/
H A Dturbostat.c5900 for (int counter_id = 0; counter_id < counter_info_num; ++counter_id) { in free_fd_cstate() local
5901 if (ccstate_counter_info[counter_id].fd_perf_core != -1) in free_fd_cstate()
5902 close(ccstate_counter_info[counter_id].fd_perf_core); in free_fd_cstate()
5904 if (ccstate_counter_info[counter_id].fd_perf_pkg != -1) in free_fd_cstate()
5905 close(ccstate_counter_info[counter_id].fd_perf_pkg); in free_fd_cstate()