Lines Matching refs:einj
319 static int aer_inject(struct aer_error_inj *einj) in aer_inject() argument
327 unsigned int devfn = PCI_DEVFN(einj->dev, einj->fn); in aer_inject()
332 dev = pci_get_domain_bus_and_slot(einj->domain, einj->bus, devfn); in aer_inject()
376 cor_mask &= !(einj->cor_status); in aer_inject()
381 uncor_mask &= !(einj->uncor_status); in aer_inject()
392 aer_error_init(err, einj->domain, einj->bus, devfn, in aer_inject()
396 err->uncor_status |= einj->uncor_status; in aer_inject()
397 err->cor_status |= einj->cor_status; in aer_inject()
398 err->header_log0 = einj->header_log0; in aer_inject()
399 err->header_log1 = einj->header_log1; in aer_inject()
400 err->header_log2 = einj->header_log2; in aer_inject()
401 err->header_log3 = einj->header_log3; in aer_inject()
403 if (!aer_mask_override && einj->cor_status && in aer_inject()
404 !(einj->cor_status & ~cor_mask)) { in aer_inject()
410 if (!aer_mask_override && einj->uncor_status && in aer_inject()
411 !(einj->uncor_status & ~uncor_mask)) { in aer_inject()
427 if (einj->cor_status) { in aer_inject()
433 rperr->source_id |= PCI_DEVID(einj->bus, devfn); in aer_inject()
435 if (einj->uncor_status) { in aer_inject()
438 if (sever & einj->uncor_status) { in aer_inject()
446 rperr->source_id |= PCI_DEVID(einj->bus, devfn) << 16; in aer_inject()
473 einj->cor_status, einj->uncor_status, pci_name(dev)); in aer_inject()
489 struct aer_error_inj einj; in aer_inject_write() local
495 usize > sizeof(einj)) in aer_inject_write()
498 memset(&einj, 0, sizeof(einj)); in aer_inject_write()
499 if (copy_from_user(&einj, ubuf, usize)) in aer_inject_write()
502 ret = aer_inject(&einj); in aer_inject_write()