Lines Matching defs:bank

35 void mce_inherit_storm(unsigned int bank)
40 * Previous CPU owning this bank had put it into storm mode,
42 * the worst (all recent polls of the bank found a valid error
46 storm->banks[bank].history = ~0ull;
47 storm->banks[bank].timestamp = jiffies;
60 static void mce_handle_storm(unsigned int bank, bool on)
64 mce_intel_handle_storm(bank, on);
69 void cmci_storm_begin(unsigned int bank)
73 __set_bit(bank, this_cpu_ptr(mce_poll_banks));
74 storm->banks[bank].in_storm_mode = true;
77 * If this is the first bank on this CPU to enter storm mode
84 void cmci_storm_end(unsigned int bank)
88 __clear_bit(bank, this_cpu_ptr(mce_poll_banks));
89 storm->banks[bank].history = 0;
90 storm->banks[bank].in_storm_mode = false;
105 if (storm->banks[mce->bank].poll_only)
109 * When a bank is in storm mode it is polled once per second and
111 * If it is not in storm mode, then the bank is only checked when
113 * this bank was last checked, and adjust the amount of "shift"
116 if (!storm->banks[mce->bank].in_storm_mode) {
117 delta = now - storm->banks[mce->bank].timestamp;
123 history = storm->banks[mce->bank].history << shift;
125 storm->banks[mce->bank].timestamp = now;
131 storm->banks[mce->bank].history = history;
133 if (storm->banks[mce->bank].in_storm_mode) {
136 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm subsided\n", smp_processor_id(), mce->bank);
137 mce_handle_storm(mce->bank, false);
138 cmci_storm_end(mce->bank);
142 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm detected\n", smp_processor_id(), mce->bank);
143 mce_handle_storm(mce->bank, true);
144 cmci_storm_begin(mce->bank);