Lines Matching refs:nb
125 return (node < amd_northbridges.num) ? &amd_northbridges.nb[node] : NULL; in node_to_amd_nb()
239 struct amd_northbridge *nb; in amd_cache_northbridges() local
278 nb = kcalloc(misc_count, sizeof(struct amd_northbridge), GFP_KERNEL); in amd_cache_northbridges()
279 if (!nb) in amd_cache_northbridges()
282 amd_northbridges.nb = nb; in amd_cache_northbridges()
409 struct amd_northbridge *nb = node_to_amd_nb(topology_die_id(cpu)); in amd_set_subcaches() local
418 pci_read_config_dword(nb->link, 0x1d4, &reset); in amd_set_subcaches()
419 pci_read_config_dword(nb->misc, 0x1b8, &ban); in amd_set_subcaches()
425 pci_read_config_dword(nb->misc, 0x1b8, ®); in amd_set_subcaches()
426 pci_write_config_dword(nb->misc, 0x1b8, reg & ~0x180000); in amd_set_subcaches()
433 pci_write_config_dword(nb->link, 0x1d4, mask); in amd_set_subcaches()
436 pci_read_config_dword(nb->link, 0x1d4, ®); in amd_set_subcaches()
438 pci_read_config_dword(nb->misc, 0x1b8, ®); in amd_set_subcaches()
440 pci_write_config_dword(nb->misc, 0x1b8, reg | ban); in amd_set_subcaches()