Lines Matching refs:cap

49 	u16 *cap;
58 cap = (u16 *)&save_state->cap.data[0];
59 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap);
65 u16 *cap;
74 cap = (u16 *)&save_state->cap.data[0];
75 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap);
133 u16 cap = pdev->dpc_cap, status;
135 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
139 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
151 u16 cap;
159 cap = pdev->dpc_cap;
174 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS,
192 u16 cap = pdev->dpc_cap, dpc_status, first_error;
197 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status);
198 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_MASK, &mask);
202 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev);
203 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, &syserr);
204 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_EXCEPTION, &exc);
209 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &dpc_status);
220 pcie_read_tlp_log(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG, &tlp_log);
226 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_IMPSPEC_LOG, &log);
231 cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG + i * 4, &prefix);
235 pci_write_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, status);
262 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason;
265 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
266 pci_read_config_word(pdev, cap + PCI_EXP_DPC_SOURCE_ID, &source);
375 u16 cap = pdev->dpc_cap, status;
377 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
382 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS,
391 u16 cap;
397 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
398 if (!(cap & PCI_EXP_DPC_CAP_RP_EXT))
406 FIELD_GET(PCI_EXP_DPC_RP_PIO_LOG_SIZE, cap);
421 u16 ctl, cap;
435 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
444 cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT),
445 FLAG(cap, PCI_EXP_DPC_CAP_POISONED_TLP),
446 FLAG(cap, PCI_EXP_DPC_CAP_SW_TRIGGER), pdev->dpc_rp_log_size,
447 FLAG(cap, PCI_EXP_DPC_CAP_DL_ACTIVE));