Lines Matching refs:dr
1488 struct pci_devres *dr, *new_dr; in get_pci_dr() local
1490 dr = devres_find(&pdev->dev, pcim_release, NULL, NULL); in get_pci_dr()
1491 if (dr) in get_pci_dr()
1492 return dr; in get_pci_dr()
1515 struct pci_devres *dr; in pcim_enable_device() local
1518 dr = get_pci_dr(pdev); in pcim_enable_device()
1519 if (unlikely(!dr)) in pcim_enable_device()
1521 if (dr->enabled) in pcim_enable_device()
1527 dr->enabled = 1; in pcim_enable_device()
1543 struct pci_devres *dr; in pcim_pin_device() local
1545 dr = find_pci_dr(pdev); in pcim_pin_device()
1546 WARN_ON(!dr || !dr->enabled); in pcim_pin_device()
1547 if (dr) in pcim_pin_device()
1548 dr->pinned = 1; in pcim_pin_device()
1634 struct pci_devres *dr; in pci_disable_device() local
1636 dr = find_pci_dr(dev); in pci_disable_device()
1637 if (dr) in pci_disable_device()
1638 dr->enabled = 0; in pci_disable_device()
3019 struct pci_devres *dr; in pci_release_region() local
3030 dr = find_pci_dr(pdev); in pci_release_region()
3031 if (dr) in pci_release_region()
3032 dr->region_mask &= ~(1 << bar); in pci_release_region()
3058 struct pci_devres *dr; in __pci_request_region() local
3074 dr = find_pci_dr(pdev); in __pci_request_region()
3075 if (dr) in __pci_request_region()
3076 dr->region_mask |= 1 << bar; in __pci_request_region()
3617 struct pci_devres *dr; in pci_intx() local
3621 dr = find_pci_dr(pdev); in pci_intx()
3622 if (dr && !dr->restore_intx) { in pci_intx()
3623 dr->restore_intx = 1; in pci_intx()
3624 dr->orig_intx = !enable; in pci_intx()