• Home
  • Raw
  • Download

Lines Matching refs:bank

50 	unsigned int		bank;  member
87 static bool lvt_interrupt_supported(unsigned int bank, u32 msr_high_bits) in lvt_interrupt_supported() argument
92 if (bank == 4) in lvt_interrupt_supported()
109 b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
116 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
199 unsigned int bank, block; in mce_amd_feature_init() local
202 for (bank = 0; bank < NR_BANKS; ++bank) { in mce_amd_feature_init()
205 address = MSR_IA32_MC0_MISC + bank * 4; in mce_amd_feature_init()
226 per_cpu(bank_map, cpu) |= (1 << bank); in mce_amd_feature_init()
227 if (shared_bank[bank] && c->cpu_core_id) in mce_amd_feature_init()
232 b.bank = bank; in mce_amd_feature_init()
235 b.interrupt_capable = lvt_interrupt_supported(bank, high); in mce_amd_feature_init()
260 unsigned int bank, block; in amd_threshold_interrupt() local
266 for (bank = 0; bank < NR_BANKS; ++bank) { in amd_threshold_interrupt()
267 if (!(per_cpu(bank_map, m.cpu) & (1 << bank))) in amd_threshold_interrupt()
271 address = MSR_IA32_MC0_MISC + bank * 4; in amd_threshold_interrupt()
304 rdmsrl(MSR_IA32_MC0_STATUS + bank * 4, in amd_threshold_interrupt()
306 m.bank = K8_MCE_THRESHOLD_BASE in amd_threshold_interrupt()
307 + bank * NR_BLOCKS in amd_threshold_interrupt()
467 unsigned int bank, in allocate_threshold_blocks() argument
475 if ((bank >= NR_BANKS) || (block >= NR_BLOCKS)) in allocate_threshold_blocks()
497 b->bank = bank; in allocate_threshold_blocks()
501 b->interrupt_capable = lvt_interrupt_supported(bank, high); in allocate_threshold_blocks()
506 if (per_cpu(threshold_banks, cpu)[bank]->blocks) { in allocate_threshold_blocks()
508 &per_cpu(threshold_banks, cpu)[bank]->blocks->miscj); in allocate_threshold_blocks()
510 per_cpu(threshold_banks, cpu)[bank]->blocks = b; in allocate_threshold_blocks()
514 per_cpu(threshold_banks, cpu)[bank]->kobj, in allocate_threshold_blocks()
528 err = allocate_threshold_blocks(cpu, bank, ++block, address); in allocate_threshold_blocks()
547 local_allocate_threshold_blocks(int cpu, unsigned int bank) in local_allocate_threshold_blocks() argument
549 return allocate_threshold_blocks(cpu, bank, 0, in local_allocate_threshold_blocks()
550 MSR_IA32_MC0_MISC + bank * 4); in local_allocate_threshold_blocks()
554 static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank) in threshold_create_bank() argument
561 sprintf(name, "threshold_bank%i", bank); in threshold_create_bank()
564 if (cpu_data(cpu).cpu_core_id && shared_bank[bank]) { /* symlink */ in threshold_create_bank()
572 if (per_cpu(threshold_banks, cpu)[bank]) in threshold_create_bank()
575 b = per_cpu(threshold_banks, i)[bank]; in threshold_create_bank()
585 per_cpu(threshold_banks, cpu)[bank] = b; in threshold_create_bank()
612 per_cpu(threshold_banks, cpu)[bank] = b; in threshold_create_bank()
614 err = local_allocate_threshold_blocks(cpu, bank); in threshold_create_bank()
628 per_cpu(threshold_banks, i)[bank] = b; in threshold_create_bank()
634 per_cpu(threshold_banks, cpu)[bank] = NULL; in threshold_create_bank()
644 unsigned int bank; in threshold_create_device() local
647 for (bank = 0; bank < NR_BANKS; ++bank) { in threshold_create_device()
648 if (!(per_cpu(bank_map, cpu) & (1 << bank))) in threshold_create_device()
650 err = threshold_create_bank(cpu, bank); in threshold_create_device()
665 unsigned int bank) in deallocate_threshold_block() argument
669 struct threshold_bank *head = per_cpu(threshold_banks, cpu)[bank]; in deallocate_threshold_block()
680 kfree(per_cpu(threshold_banks, cpu)[bank]->blocks); in deallocate_threshold_block()
681 per_cpu(threshold_banks, cpu)[bank]->blocks = NULL; in deallocate_threshold_block()
684 static void threshold_remove_bank(unsigned int cpu, int bank) in threshold_remove_bank() argument
691 b = per_cpu(threshold_banks, cpu)[bank]; in threshold_remove_bank()
697 sprintf(name, "threshold_bank%i", bank); in threshold_remove_bank()
701 if (shared_bank[bank] && b->blocks->cpu != cpu) { in threshold_remove_bank()
704 per_cpu(threshold_banks, cpu)[bank] = NULL; in threshold_remove_bank()
718 per_cpu(threshold_banks, i)[bank] = NULL; in threshold_remove_bank()
721 deallocate_threshold_block(cpu, bank); in threshold_remove_bank()
728 per_cpu(threshold_banks, cpu)[bank] = NULL; in threshold_remove_bank()
733 unsigned int bank; in threshold_remove_device() local
735 for (bank = 0; bank < NR_BANKS; ++bank) { in threshold_remove_device()
736 if (!(per_cpu(bank_map, cpu) & (1 << bank))) in threshold_remove_device()
738 threshold_remove_bank(cpu, bank); in threshold_remove_device()