Lines Matching full:cap
46 u16 *cap; in pci_save_dpc_state() local
55 cap = (u16 *)&save_state->cap.data[0]; in pci_save_dpc_state()
56 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); in pci_save_dpc_state()
62 u16 *cap; in pci_restore_dpc_state() local
71 cap = (u16 *)&save_state->cap.data[0]; in pci_restore_dpc_state()
72 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); in pci_restore_dpc_state()
130 u16 cap = pdev->dpc_cap, status; in dpc_wait_rp_inactive() local
132 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
136 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); in dpc_wait_rp_inactive()
148 u16 cap; in dpc_reset_link() local
156 cap = pdev->dpc_cap; in dpc_reset_link()
171 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS, in dpc_reset_link()
189 u16 cap = pdev->dpc_cap, dpc_status, first_error; 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()
194 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_MASK, &mask); in dpc_process_rp_pio_error()
198 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev); in dpc_process_rp_pio_error()
199 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, &syserr); in dpc_process_rp_pio_error()
200 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_EXCEPTION, &exc); in dpc_process_rp_pio_error()
205 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &dpc_status); in dpc_process_rp_pio_error()
216 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG, in dpc_process_rp_pio_error()
218 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 4, in dpc_process_rp_pio_error()
220 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 8, in dpc_process_rp_pio_error()
222 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 12, in dpc_process_rp_pio_error()
229 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_IMPSPEC_LOG, &log); in dpc_process_rp_pio_error()
234 cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG + i * 4, &prefix); 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()
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()
269 pci_read_config_word(pdev, cap + PCI_EXP_DPC_SOURCE_ID, &source); 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()
318 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS, in dpc_irq()
327 u16 cap; in pci_dpc_init() local
333 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap); in pci_dpc_init()
334 if (!(cap & PCI_EXP_DPC_CAP_RP_EXT)) in pci_dpc_init()
342 FIELD_GET(PCI_EXP_DPC_RP_PIO_LOG_SIZE, cap); in pci_dpc_init()
357 u16 ctl, cap; in dpc_probe() local
371 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap); in dpc_probe()
379 cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT), in dpc_probe()
380 FLAG(cap, PCI_EXP_DPC_CAP_POISONED_TLP), in dpc_probe()
381 FLAG(cap, PCI_EXP_DPC_CAP_SW_TRIGGER), pdev->dpc_rp_log_size, in dpc_probe()
382 FLAG(cap, PCI_EXP_DPC_CAP_DL_ACTIVE)); in dpc_probe()