Searched refs:vr_res (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/pci/ |
H A D | vga_pci.c | 56 struct resource *vr_res; member 244 vga_pci_release_resource(dev, NULL, vr->vr_res); in vga_pci_map_bios() 267 vga_pci_release_resource(dev, NULL, vr->vr_res); in vga_pci_map_bios() 307 KASSERT(vr->vr_res != NULL, ("vga_pci_unmap_bios: bios not mapped")); in vga_pci_unmap_bios() 308 KASSERT(rman_get_virtual(vr->vr_res) == bios, in vga_pci_unmap_bios() 310 vga_pci_release_resource(dev, NULL, vr->vr_res); in vga_pci_unmap_bios() 442 if (vr->vr_res == NULL) in vga_pci_alloc_resource() 443 vr->vr_res = bus_alloc_resource(dev, type, rid, start, in vga_pci_alloc_resource() 445 if (vr->vr_res != NULL) in vga_pci_alloc_resource() 447 return (vr->vr_res); in vga_pci_alloc_resource() [all …]
|
/freebsd/sys/dev/vr/ |
H A D | if_vrreg.h | 714 struct resource *vr_res; member 749 #define CSR_WRITE_4(sc, reg, val) bus_write_4(sc->vr_res, reg, val) 750 #define CSR_WRITE_2(sc, reg, val) bus_write_2(sc->vr_res, reg, val) 751 #define CSR_WRITE_1(sc, reg, val) bus_write_1(sc->vr_res, reg, val) 753 #define CSR_READ_2(sc, reg) bus_read_2(sc->vr_res, reg) 754 #define CSR_READ_1(sc, reg) bus_read_1(sc->vr_res, reg)
|
H A D | if_vr.c | 638 sc->vr_res = bus_alloc_resource_any(dev, sc->vr_res_type, in vr_attach() 640 if (sc->vr_res == NULL) { in vr_attach() 847 if (sc->vr_res) in vr_detach() 849 sc->vr_res); in vr_detach()
|