Lines Matching refs:status

79 	u16 status;  in dpc_completed()  local
81 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_STATUS, &status); in dpc_completed()
82 if ((status != 0xffff) && (status & PCI_EXP_DPC_STATUS_TRIGGER)) in dpc_completed()
129 u16 cap = pdev->dpc_cap, status; in dpc_wait_rp_inactive() local
131 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
132 while (status & PCI_EXP_DPC_RP_BUSY && in dpc_wait_rp_inactive()
135 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
137 if (status & PCI_EXP_DPC_RP_BUSY) { in dpc_wait_rp_inactive()
190 u32 status, mask, sev, syserr, exc, dw0, dw1, dw2, dw3, log, prefix; in dpc_process_rp_pio_error() local
193 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status); in dpc_process_rp_pio_error()
196 status, mask); in dpc_process_rp_pio_error()
209 if ((status & ~mask) & (1 << i)) in dpc_process_rp_pio_error()
238 pci_write_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, status); in dpc_process_rp_pio_error()
245 u32 status, mask, sev; in dpc_get_aer_uncorrect_severity() local
247 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &status); in dpc_get_aer_uncorrect_severity()
249 status &= ~mask; in dpc_get_aer_uncorrect_severity()
250 if (!status) in dpc_get_aer_uncorrect_severity()
254 status &= sev; in dpc_get_aer_uncorrect_severity()
255 if (status) in dpc_get_aer_uncorrect_severity()
265 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason; in dpc_process_error() local
268 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_process_error()
272 status, source); in dpc_process_error()
274 reason = (status & PCI_EXP_DPC_STATUS_TRIGGER_RSN) >> 1; in dpc_process_error()
275 ext_reason = (status & PCI_EXP_DPC_STATUS_TRIGGER_RSN_EXT) >> 5; in dpc_process_error()
311 u16 cap = pdev->dpc_cap, status; in dpc_irq() local
313 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_irq()
315 if (!(status & PCI_EXP_DPC_STATUS_INTERRUPT) || status == (u16)(~0)) in dpc_irq()
320 if (status & PCI_EXP_DPC_STATUS_TRIGGER) in dpc_irq()
351 int status; in dpc_probe() local
357 status = devm_request_threaded_irq(device, dev->irq, dpc_irq, in dpc_probe()
360 if (status) { in dpc_probe()
362 status); in dpc_probe()
363 return status; in dpc_probe()
380 return status; in dpc_probe()