Lines Matching refs:tr
144 struct thresh_restart *tr = _tr; in threshold_restart_bank() local
147 rdmsr(tr->b->address, lo, hi); in threshold_restart_bank()
149 if (tr->b->threshold_limit < (hi & THRESHOLD_MAX)) in threshold_restart_bank()
150 tr->reset = 1; /* limit cannot be lower than err count */ in threshold_restart_bank()
152 if (tr->reset) { /* reset err count and overflow bit */ in threshold_restart_bank()
155 (THRESHOLD_MAX - tr->b->threshold_limit); in threshold_restart_bank()
156 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_bank()
158 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_bank()
167 if (!tr->b->interrupt_capable) in threshold_restart_bank()
170 if (tr->set_lvt_off) { in threshold_restart_bank()
171 if (lvt_off_valid(tr->b, tr->lvt_off, lo, hi)) { in threshold_restart_bank()
174 hi |= tr->lvt_off << 20; in threshold_restart_bank()
178 if (tr->b->interrupt_enable) in threshold_restart_bank()
184 wrmsr(tr->b->address, lo, hi); in threshold_restart_bank()
189 struct thresh_restart tr = { in mce_threshold_block_init() local
196 threshold_restart_bank(&tr); in mce_threshold_block_init()
356 struct thresh_restart tr; in SHOW_FIELDS() local
367 memset(&tr, 0, sizeof(tr)); in SHOW_FIELDS()
368 tr.b = b; in SHOW_FIELDS()
370 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1); in SHOW_FIELDS()
378 struct thresh_restart tr; in store_threshold_limit() local
389 memset(&tr, 0, sizeof(tr)); in store_threshold_limit()
390 tr.old_limit = b->threshold_limit; in store_threshold_limit()
392 tr.b = b; in store_threshold_limit()
394 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1); in store_threshold_limit()