Home
last modified time | relevance | path

Searched refs:cnt_num (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/platform/mellanox/
Dmlxbf-pmc.c1105 static int mlxbf_pmc_program_l3_counter(unsigned int blk_num, u32 cnt_num, u32 evt) in mlxbf_pmc_program_l3_counter() argument
1116 switch (cnt_num) { in mlxbf_pmc_program_l3_counter()
1135 switch (cnt_num) { in mlxbf_pmc_program_l3_counter()
1169 static int mlxbf_pmc_program_crspace_counter(unsigned int blk_num, u32 cnt_num, u32 evt) in mlxbf_pmc_program_crspace_counter() argument
1176 ((cnt_num / 2) * MLXBF_PMC_CRSPACE_PERFSEL_SZ); in mlxbf_pmc_program_crspace_counter()
1181 if (cnt_num % 2) { in mlxbf_pmc_program_crspace_counter()
1193 static int mlxbf_pmc_clear_crspace_counter(unsigned int blk_num, u32 cnt_num) in mlxbf_pmc_clear_crspace_counter() argument
1199 (cnt_num * 4); in mlxbf_pmc_clear_crspace_counter()
1205 static int mlxbf_pmc_program_counter(unsigned int blk_num, u32 cnt_num, u32 evt, bool is_l3) in mlxbf_pmc_program_counter() argument
1209 if (cnt_num >= pmc->block[blk_num].counters) in mlxbf_pmc_program_counter()
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h717 u16 cnt_num[MAX_STAGE_NUM]; /* rule hit counter number */ member
Dhclge_main.c5591 &hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1], in hclge_init_fd_config()
5592 &hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_2]); in hclge_init_fd_config()
5890 if (hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1]) { in hclge_config_action()
5893 hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1]; in hclge_config_action()