Lines Matching refs:block_name
158 const char *block_name[MLXBF_PMC_MAX_BLOCKS]; member
1471 if (strstr(pmc->block_name[blk_num], "ecc")) { in mlxbf_pmc_read_reg()
1490 if (strstr(pmc->block_name[blk_num], "ecc")) { in mlxbf_pmc_write_reg()
1516 if (strstr(pmc->block_name[blk_num], "l3cache")) in mlxbf_pmc_counter_show()
1524 offset = mlxbf_pmc_get_event_num(pmc->block_name[blk_num], in mlxbf_pmc_counter_show()
1557 if (!(strstr(pmc->block_name[blk_num], "ecc")) && data) in mlxbf_pmc_counter_store()
1561 if (strstr(pmc->block_name[blk_num], "l3cache")) in mlxbf_pmc_counter_store()
1573 offset = mlxbf_pmc_get_event_num(pmc->block_name[blk_num], in mlxbf_pmc_counter_store()
1605 if (strstr(pmc->block_name[blk_num], "l3cache")) in mlxbf_pmc_event_show()
1612 evt_name = mlxbf_pmc_get_event_name(pmc->block_name[blk_num], evt_num); in mlxbf_pmc_event_show()
1635 evt_num = mlxbf_pmc_get_event_num(pmc->block_name[blk_num], in mlxbf_pmc_event_store()
1645 if (strstr(pmc->block_name[blk_num], "l3cache")) in mlxbf_pmc_event_store()
1670 events = mlxbf_pmc_event_list(pmc->block_name[blk_num], &size); in mlxbf_pmc_event_list_show()
1772 if (!mlxbf_pmc_event_supported(pmc->block_name[blk_num])) in mlxbf_pmc_init_perftype_counter()
1788 if (strstr(pmc->block_name[blk_num], "l3cache") || in mlxbf_pmc_init_perftype_counter()
1856 events = mlxbf_pmc_event_list(pmc->block_name[blk_num], &count); in mlxbf_pmc_init_perftype_reg()
1905 dev, GFP_KERNEL, pmc->block_name[blk_num]); in mlxbf_pmc_create_groups()
1934 if (strstr(pmc->block_name[i], "tilenet")) { in mlxbf_pmc_map_counters()
1935 if (sscanf(pmc->block_name[i], "tilenet%u", &tile_num) != 1) in mlxbf_pmc_map_counters()
1940 } else if (strstr(pmc->block_name[i], "tile")) { in mlxbf_pmc_map_counters()
1941 if (sscanf(pmc->block_name[i], "tile%u", &tile_num) != 1) in mlxbf_pmc_map_counters()
1949 if (strstr(pmc->block_name[i], "mss") && in mlxbf_pmc_map_counters()
1953 if (sscanf(pmc->block_name[i], "mss%u", &mss_num) != 1) in mlxbf_pmc_map_counters()
1961 if (strstr(pmc->block_name[i], "llt_miss")) { in mlxbf_pmc_map_counters()
1964 if (sscanf(pmc->block_name[i], "llt_miss%u", &llt_num) != 1) in mlxbf_pmc_map_counters()
1969 } else if (strstr(pmc->block_name[i], "llt")) { in mlxbf_pmc_map_counters()
1972 if (sscanf(pmc->block_name[i], "llt%u", &llt_num) != 1) in mlxbf_pmc_map_counters()
1979 ret = device_property_read_u64_array(dev, pmc->block_name[i], in mlxbf_pmc_map_counters()
2003 dev_warn(dev, "ignoring unsupported block: '%s'\n", pmc->block_name[i]); in mlxbf_pmc_map_counters()
2069 pmc->block_name, in mlxbf_pmc_probe()