Lines Matching refs:nr_sets
257 const __be32 *nr_sets; in cache_nr_sets() local
261 nr_sets = of_get_property(cache->ofnode, propname, NULL); in cache_nr_sets()
262 if (!nr_sets) in cache_nr_sets()
265 *ret = of_read_number(nr_sets, 1); in cache_nr_sets()
272 unsigned int nr_sets; in cache_associativity() local
275 if (cache_nr_sets(cache, &nr_sets)) in cache_associativity()
281 if (nr_sets == 1) { in cache_associativity()
291 if (!(nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
294 *ret = (size / nr_sets) / line_size; in cache_associativity()
571 unsigned int nr_sets; in nr_sets_show() local
576 if (cache_nr_sets(cache, &nr_sets)) in nr_sets_show()
579 return sprintf(buf, "%u\n", nr_sets); in nr_sets_show()