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