Home
last modified time | relevance | path

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

/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-pmc.c649 static int mlxbf_pmc_program_l3_counter(int blk_num, uint32_t cnt_num, in mlxbf_pmc_program_l3_counter() argument
663 switch (cnt_num) { in mlxbf_pmc_program_l3_counter()
682 switch (cnt_num) { in mlxbf_pmc_program_l3_counter()
716 static int mlxbf_pmc_program_counter(int blk_num, uint32_t cnt_num, in mlxbf_pmc_program_counter() argument
721 if (cnt_num >= pmc->block[blk_num].counters) in mlxbf_pmc_program_counter()
725 return mlxbf_pmc_program_l3_counter(blk_num, cnt_num, evt); in mlxbf_pmc_program_counter()
743 cnt_num * MLXBF_PMC_REG_SIZE, in mlxbf_pmc_program_counter()
757 cnt_num * MLXBF_PMC_REG_SIZE, in mlxbf_pmc_program_counter()
768 cnt_num * MLXBF_PMC_REG_SIZE, in mlxbf_pmc_program_counter()
776 static int mlxbf_pmc_read_l3_counter(int blk_num, uint32_t cnt_num, in mlxbf_pmc_read_l3_counter() argument
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h699 u16 cnt_num[MAX_STAGE_NUM]; /* rule hit counter number */ member
H A Dhclge_main.c5534 &hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1], in hclge_init_fd_config()
5535 &hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_2]); in hclge_init_fd_config()
5833 if (hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1]) { in hclge_config_action()
5836 hdev->fd_cfg.cnt_num[HCLGE_FD_STAGE_1]; in hclge_config_action()