Lines Matching refs:rle

1795 	struct resource_list_entry *rle;  in pci_alloc_msix_method()  local
1803 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 0); in pci_alloc_msix_method()
1804 if (rle != NULL && rle->res != NULL) in pci_alloc_msix_method()
1820 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, in pci_alloc_msix_method()
1822 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
1823 !(rman_get_flags(rle->res) & RF_ACTIVE)) in pci_alloc_msix_method()
1825 cfg->msix.msix_table_res = rle->res; in pci_alloc_msix_method()
1827 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, in pci_alloc_msix_method()
1829 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
1830 !(rman_get_flags(rle->res) & RF_ACTIVE)) in pci_alloc_msix_method()
1833 cfg->msix.msix_pba_res = rle->res; in pci_alloc_msix_method()
1854 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 1); in pci_alloc_msix_method()
1857 rle->start); in pci_alloc_msix_method()
1866 device_printf(child, "using IRQs %ju", rle->start); in pci_alloc_msix_method()
1867 irq = rle->start; in pci_alloc_msix_method()
1870 rle = resource_list_find(&dinfo->resources, in pci_alloc_msix_method()
1874 if (rle->start == irq + 1) { in pci_alloc_msix_method()
1887 printf(",%ju", rle->start); in pci_alloc_msix_method()
1888 irq = rle->start; in pci_alloc_msix_method()
1908 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, i + 1); in pci_alloc_msix_method()
1909 cfg->msix.msix_vectors[i].mv_irq = rle->start; in pci_alloc_msix_method()
1970 struct resource_list_entry *rle; in pci_remap_msix_method() local
2014 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, i + 1); in pci_remap_msix_method()
2015 KASSERT(rle != NULL, ("missing resource")); in pci_remap_msix_method()
2016 if (rle->res != NULL) { in pci_remap_msix_method()
2091 struct resource_list_entry *rle; in pci_release_msix() local
2104 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, i + 1); in pci_release_msix()
2105 KASSERT(rle != NULL, ("missing resource")); in pci_release_msix()
2106 if (rle->res != NULL) in pci_release_msix()
2408 struct resource_list_entry *rle; in pci_remap_intr_method() local
2425 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, in pci_remap_intr_method()
2427 if (rle->start == irq) { in pci_remap_intr_method()
2577 struct resource_list_entry *rle; in pci_alloc_msi_method() local
2586 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 0); in pci_alloc_msi_method()
2587 if (rle != NULL && rle->res != NULL) in pci_alloc_msi_method()
2696 struct resource_list_entry *rle; in pci_release_msi_method() local
2713 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, i + 1); in pci_release_msi_method()
2714 KASSERT(rle != NULL, ("missing MSI resource")); in pci_release_msi_method()
2715 if (rle->res != NULL) in pci_release_msi_method()
2717 irqs[i] = rle->start; in pci_release_msi_method()
4587 struct resource_list_entry *rle; in pci_suspend_child() local
4612 rle = resource_list_find(&dinfo->resources, in pci_suspend_child()
4614 if (rle != NULL && rle->res != NULL) in pci_suspend_child()
4615 (void)bus_suspend_intr(child, rle->res); in pci_suspend_child()
4626 struct resource_list_entry *rle; in pci_resume_child() local
4643 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 0); in pci_resume_child()
4644 if (rle != NULL && rle->res != NULL) in pci_resume_child()
4645 (void)bus_resume_intr(child, rle->res); in pci_resume_child()
4852 struct resource_list_entry *rle; in pci_teardown_intr() local
4875 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, rid); in pci_teardown_intr()
4876 if (rle->res != irq) in pci_teardown_intr()
5537 struct resource_list_entry *rle; in pci_alloc_multi_resource() local
5594 rle = resource_list_find(rl, type, *rid); in pci_alloc_multi_resource()
5595 if (rle == NULL) { in pci_alloc_multi_resource()
5740 struct resource_list_entry *rle; in pci_child_deleted() local
5758 STAILQ_FOREACH(rle, rl, link) { in pci_child_deleted()
5759 if (rle->res) { in pci_child_deleted()
5760 if (rman_get_flags(rle->res) & RF_ACTIVE || in pci_child_deleted()
5761 resource_list_busy(rl, rle->type, rle->rid)) { in pci_child_deleted()
5765 rle->type, rle->rid, in pci_child_deleted()
5766 rman_get_start(rle->res)); in pci_child_deleted()
5767 bus_release_resource(child, rle->type, rle->rid, in pci_child_deleted()
5768 rle->res); in pci_child_deleted()
5770 resource_list_unreserve(rl, dev, child, rle->type, in pci_child_deleted()
5771 rle->rid); in pci_child_deleted()
5784 struct resource_list_entry *rle; in pci_delete_resource() local
5791 rle = resource_list_find(rl, type, rid); in pci_delete_resource()
5792 if (rle == NULL) in pci_delete_resource()
5795 if (rle->res) { in pci_delete_resource()
5796 if (rman_get_flags(rle->res) & RF_ACTIVE || in pci_delete_resource()
5801 type, rid, rman_get_start(rle->res)); in pci_delete_resource()