Lines Matching refs:mce
26 #include <asm/mce.h>
62 void mce_log(struct mce *mce)
66 mce->finished = 0;
92 memcpy(mcelog.entry + entry, mce, sizeof(struct mce));
101 static void print_mce(struct mce *m)
128 static void mce_panic(char *msg, struct mce *backup, unsigned long start)
153 static inline void mce_get_rip(struct mce *m, struct pt_regs *regs)
187 struct mce m, panicm;
201 memset(&m, 0, sizeof(struct mce));
308 * The status parameter will be saved to the 'status' field of 'struct mce'
314 struct mce m;
490 if (*off != 0 || usize < MCE_LOG_LEN*sizeof(struct mce)) {
501 memset(mcelog.entry + i,0, sizeof(struct mce));
507 err |= copy_to_user(buf, mcelog.entry + i, sizeof(struct mce));
508 buf += sizeof(struct mce);
513 memset(mcelog.entry, 0, next * sizeof(struct mce));
524 err |= copy_to_user(buf, mcelog.entry+i, sizeof(struct mce));
526 buf += sizeof(struct mce);
527 memset(&mcelog.entry[i], 0, sizeof(struct mce));
542 return put_user(sizeof(struct mce), p);
578 /* mce=off disables machine check. Note you can reenable it later
580 mce=TOLERANCELEVEL (number, see above)
581 mce=bootlog Log MCEs from before booting. Disabled by default on AMD.
582 mce=nobootlog Don't log MCEs from before booting. */
594 printk("mce= argument %s ignored. Please use /sys", str);
599 __setup("mce", mcheck_enable);