Lines Matching full:mce
27 * Lockless MCE logging infrastructure.
39 struct mce *mce = (struct mce *)data; in dev_mce_log() local
42 if (mce->kflags & MCE_HANDLED_CEC) in dev_mce_log()
60 memcpy(mcelog->entry + entry, mce, sizeof(struct mce)); in dev_mce_log()
71 mce->kflags |= MCE_HANDLED_MCELOG; in dev_mce_log()
121 * mce_chrdev: Character device /dev/mcelog to read and clear the MCE log.
162 /* Collect MCE record of previous boot in persistent storage via APEI ERST. */
167 struct mce m; in __mce_read_apei()
169 if (usize < sizeof(struct mce)) in __mce_read_apei()
173 /* Error or no more MCE record */ in __mce_read_apei()
185 if (copy_to_user(*ubuf, &m, sizeof(struct mce))) in __mce_read_apei()
198 *ubuf += sizeof(struct mce); in __mce_read_apei()
220 if (*off != 0 || usize < mcelog->len * sizeof(struct mce)) in mce_chrdev_read()
227 struct mce *m = &mcelog->entry[i]; in mce_chrdev_read()
233 memset(mcelog->entry, 0, next * sizeof(struct mce)); in mce_chrdev_read()
265 return put_user(sizeof(struct mce), p); in mce_chrdev_ioctl()
297 struct mce m; in mce_chrdev_write()
308 if ((unsigned long)usize > sizeof(struct mce)) in mce_chrdev_write()
309 usize = sizeof(struct mce); in mce_chrdev_write()
356 mcelog->recordlen = sizeof(struct mce); in dev_mcelog_init_device()