Lines Matching refs:tr

153 	struct thresh_restart *tr = _tr;  in threshold_restart_bank()  local
156 rdmsr(tr->b->address, lo, hi); in threshold_restart_bank()
158 if (tr->b->threshold_limit < (hi & THRESHOLD_MAX)) in threshold_restart_bank()
159 tr->reset = 1; /* limit cannot be lower than err count */ in threshold_restart_bank()
161 if (tr->reset) { /* reset err count and overflow bit */ in threshold_restart_bank()
164 (THRESHOLD_MAX - tr->b->threshold_limit); in threshold_restart_bank()
165 } else if (tr->old_limit) { /* change limit w/o reset */ in threshold_restart_bank()
167 (tr->old_limit - tr->b->threshold_limit); in threshold_restart_bank()
176 if (!tr->b->interrupt_capable) in threshold_restart_bank()
179 if (tr->set_lvt_off) { in threshold_restart_bank()
180 if (lvt_off_valid(tr->b, tr->lvt_off, lo, hi)) { in threshold_restart_bank()
183 hi |= tr->lvt_off << 20; in threshold_restart_bank()
187 if (tr->b->interrupt_enable) in threshold_restart_bank()
193 wrmsr(tr->b->address, lo, hi); in threshold_restart_bank()
198 struct thresh_restart tr = { in mce_threshold_block_init() local
205 threshold_restart_bank(&tr); in mce_threshold_block_init()
457 struct thresh_restart tr; in SHOW_FIELDS() local
468 memset(&tr, 0, sizeof(tr)); in SHOW_FIELDS()
469 tr.b = b; in SHOW_FIELDS()
471 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1); in SHOW_FIELDS()
479 struct thresh_restart tr; in store_threshold_limit() local
490 memset(&tr, 0, sizeof(tr)); in store_threshold_limit()
491 tr.old_limit = b->threshold_limit; in store_threshold_limit()
493 tr.b = b; in store_threshold_limit()
495 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1); in store_threshold_limit()