• Home
  • Raw
  • Download

Lines Matching refs:nb

159 	struct amd_northbridge *nb;  member
306 static void __cpuinit amd_calc_l3_indices(struct amd_northbridge *nb) in amd_calc_l3_indices() argument
308 struct amd_l3_cache *l3 = &nb->l3_cache; in amd_calc_l3_indices()
312 pci_read_config_dword(nb->misc, 0x1C4, &val); in amd_calc_l3_indices()
338 this_leaf->nb = node_to_amd_nb(node); in amd_init_l3_cache()
339 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache()
340 amd_calc_l3_indices(this_leaf->nb); in amd_init_l3_cache()
350 int amd_get_l3_disable_slot(struct amd_northbridge *nb, unsigned slot) in amd_get_l3_disable_slot() argument
354 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, &reg); in amd_get_l3_disable_slot()
368 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE)) in show_cache_disable()
371 index = amd_get_l3_disable_slot(this_leaf->base.nb, slot); in show_cache_disable()
388 static void amd_l3_disable_index(struct amd_northbridge *nb, int cpu, in amd_l3_disable_index() argument
401 if (!nb->l3_cache.subcaches[i]) in amd_l3_disable_index()
404 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
414 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
428 int amd_set_l3_disable_slot(struct amd_northbridge *nb, int cpu, unsigned slot, in amd_set_l3_disable_slot() argument
434 ret = amd_get_l3_disable_slot(nb, slot); in amd_set_l3_disable_slot()
438 if (index > nb->l3_cache.indices) in amd_set_l3_disable_slot()
442 if (index == amd_get_l3_disable_slot(nb, !slot)) in amd_set_l3_disable_slot()
445 amd_l3_disable_index(nb, cpu, slot, index); in amd_set_l3_disable_slot()
460 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE)) in store_cache_disable()
468 err = amd_set_l3_disable_slot(this_leaf->base.nb, cpu, slot, val); in store_cache_disable()
497 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_PARTITIONING)) in show_subcaches()
512 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_PARTITIONING)) in store_subcaches()
1132 if (this_leaf->base.nb) in cache_add_dev()