D | cacheinfo.c | 69 unsigned int sets, unsigned int line_size) in ci_leaf_init() argument 74 this_leaf->number_of_sets = sets; in ci_leaf_init() 81 if (sets == 1) in ci_leaf_init() 88 if (sets > 0 && size > 0 && line_size > 0) in ci_leaf_init() 89 this_leaf->ways_of_associativity = (size / sets) / line_size; in ci_leaf_init() 95 unsigned int size, sets, line_size; in fill_cacheinfo() local 99 !of_property_read_u32(node, "cache-sets", &sets)) { in fill_cacheinfo() 100 ci_leaf_init((*this_leaf)++, CACHE_TYPE_UNIFIED, level, size, sets, line_size); in fill_cacheinfo() 104 !of_property_read_u32(node, "i-cache-sets", &sets) && in fill_cacheinfo() 106 ci_leaf_init((*this_leaf)++, CACHE_TYPE_INST, level, size, sets, line_size); in fill_cacheinfo() [all …]
|