Lines Matching refs:slot
329 int amd_get_l3_disable_slot(struct amd_northbridge *nb, unsigned slot) in amd_get_l3_disable_slot() argument
333 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, ®); in amd_get_l3_disable_slot()
343 unsigned int slot) in show_cache_disable() argument
348 index = amd_get_l3_disable_slot(nb, slot); in show_cache_disable()
355 #define SHOW_CACHE_DISABLE(slot) \ argument
357 cache_disable_##slot##_show(struct device *dev, \
361 return show_cache_disable(this_leaf, buf, slot); \
367 unsigned slot, unsigned long idx) in amd_l3_disable_index() argument
382 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
392 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
406 int amd_set_l3_disable_slot(struct amd_northbridge *nb, int cpu, unsigned slot, in amd_set_l3_disable_slot() argument
412 ret = amd_get_l3_disable_slot(nb, slot); in amd_set_l3_disable_slot()
420 if (index == amd_get_l3_disable_slot(nb, !slot)) in amd_set_l3_disable_slot()
423 amd_l3_disable_index(nb, cpu, slot, index); in amd_set_l3_disable_slot()
430 unsigned int slot) in store_cache_disable() argument
444 err = amd_set_l3_disable_slot(nb, cpu, slot, val); in store_cache_disable()
448 slot); in store_cache_disable()
454 #define STORE_CACHE_DISABLE(slot) \ argument
456 cache_disable_##slot##_store(struct device *dev, \
461 return store_cache_disable(this_leaf, buf, count, slot); \