Lines Matching refs:tr
99 struct thresh_restart *tr = _tr;
102 rdmsr(tr->b->address, mci_misc_lo, mci_misc_hi);
104 if (tr->b->threshold_limit < (mci_misc_hi & THRESHOLD_MAX))
105 tr->reset = 1; /* limit cannot be lower than err count */
107 if (tr->reset) { /* reset err count and overflow bit */
110 (THRESHOLD_MAX - tr->b->threshold_limit);
111 } else if (tr->old_limit) { /* change limit w/o reset */
113 (tr->old_limit - tr->b->threshold_limit);
119 tr->b->interrupt_enable ?
124 wrmsr(tr->b->address, mci_misc_lo, mci_misc_hi);
133 struct thresh_restart tr;
173 tr.b = &threshold_defaults;
174 tr.reset = 0;
175 tr.old_limit = 0;
176 threshold_restart_bank(&tr);
272 struct thresh_restart tr;
280 tr.b = b;
281 tr.reset = 0;
282 tr.old_limit = 0;
284 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1);
292 struct thresh_restart tr;
303 tr.old_limit = b->threshold_limit;
305 tr.b = b;
306 tr.reset = 0;
308 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1);
339 struct thresh_restart tr = { .b = b, .reset = 1, .old_limit = 0 };
341 smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1);