Home
last modified time | relevance | path

Searched refs:pci_mem (Results 1 – 17 of 17) sorted by relevance

/freebsd/sys/dev/liquidio/
H A Dlio_main.h72 if (oct->mem_bus_space[baridx].pci_mem != NULL) { in lio_unmap_pci_barx()
75 oct->mem_bus_space[baridx].pci_mem); in lio_unmap_pci_barx()
76 oct->mem_bus_space[baridx].pci_mem = NULL; in lio_unmap_pci_barx()
90 oct->mem_bus_space[baridx].pci_mem = in lio_map_pci_barx()
94 if (oct->mem_bus_space[baridx].pci_mem == NULL) { in lio_map_pci_barx()
101 rman_get_bustag(oct->mem_bus_space[baridx].pci_mem); in lio_map_pci_barx()
103 rman_get_bushandle(oct->mem_bus_space[baridx].pci_mem); in lio_map_pci_barx()
/freebsd/sys/dev/netmap/
H A Dnetmap_freebsd.c773 struct resource *pci_mem; member
820 ptn_dev->pci_mem = bus_alloc_resource(ptn_dev->dev, SYS_RES_MEMORY, in nm_os_pt_memdev_iomap()
822 if (ptn_dev->pci_mem == NULL) { in nm_os_pt_memdev_iomap()
828 *nm_paddr = rman_get_start(ptn_dev->pci_mem); in nm_os_pt_memdev_iomap()
829 *nm_addr = rman_get_virtual(ptn_dev->pci_mem); in nm_os_pt_memdev_iomap()
834 (unsigned long)rman_get_size(ptn_dev->pci_mem), in nm_os_pt_memdev_iomap()
851 if (ptn_dev->pci_mem) { in nm_os_pt_memdev_iounmap()
853 PCIR_BAR(PTNETMAP_MEM_PCI_BAR), ptn_dev->pci_mem); in nm_os_pt_memdev_iounmap()
854 ptn_dev->pci_mem = NULL; in nm_os_pt_memdev_iounmap()
923 if (ptn_dev->pci_mem) { in ptn_memdev_detach()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_iw.h56 struct resource *pci_mem; member
H A Dixl_iw.c165 pf_info->pci_mem = pf->pci_mem; in ixl_iw_pf_init()
H A Dixl_pf_iflib.c338 if (pf->pci_mem != NULL) in ixl_free_pci_resources()
340 rman_get_rid(pf->pci_mem), pf->pci_mem); in ixl_free_pci_resources()
H A Dif_ixl.c369 pf->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ixl_allocate_pci_resources()
372 if (!(pf->pci_mem)) { in ixl_allocate_pci_resources()
391 rman_get_bustag(pf->pci_mem); in ixl_allocate_pci_resources()
393 rman_get_bushandle(pf->pci_mem); in ixl_allocate_pci_resources()
394 pf->osdep.mem_bus_space_size = rman_get_size(pf->pci_mem); in ixl_allocate_pci_resources()
H A Dixl_pf.h120 struct resource *pci_mem; member
/freebsd/sys/dev/irdma/
H A Dicrdma.c523 rf->dev_ctx.mem_bus_space_tag = rman_get_bustag(peer->pci_mem); in irdma_fill_device_info()
524 rf->dev_ctx.mem_bus_space_handle = rman_get_bushandle(peer->pci_mem); in irdma_fill_device_info()
525 rf->dev_ctx.mem_bus_space_size = rman_get_size(peer->pci_mem); in irdma_fill_device_info()
528 rf->hw.hw_addr = (u8 *)rman_get_virtual(peer->pci_mem); in irdma_fill_device_info()
567 if_getdunit(peer->ifp), (void *)(uintptr_t)peer->pci_mem->r_bustag); in irdma_probe()
/freebsd/sys/dev/iavf/
H A Diavf_lib.c102 sc->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in iavf_allocate_pci_resources_common()
105 if (!(sc->pci_mem)) { in iavf_allocate_pci_resources_common()
114 rman_get_bustag(sc->pci_mem); in iavf_allocate_pci_resources_common()
116 rman_get_bushandle(sc->pci_mem); in iavf_allocate_pci_resources_common()
117 sc->osdep.mem_bus_space_size = rman_get_size(sc->pci_mem); in iavf_allocate_pci_resources_common()
H A Diavf_iflib.h338 struct resource *pci_mem; member
H A Dif_iavf_iflib.c1546 if (sc->pci_mem != NULL) in iavf_free_pci_resources()
1548 rman_get_rid(sc->pci_mem), sc->pci_mem); in iavf_free_pci_resources()
/freebsd/sys/dev/ice/
H A Dice_rdma.h224 * @var ice_rdma_peer::pci_mem
246 struct resource *pci_mem; member
H A Dice_rdma.c645 entry->peer.pci_mem = sc->bar0.res; in ice_rdma_pf_attach_locked()
/freebsd/sys/dev/ixgbe/
H A Dif_ixv.c1108 sc->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ixv_allocate_pci_resources()
1111 if (!(sc->pci_mem)) { in ixv_allocate_pci_resources()
1116 sc->osdep.mem_bus_space_tag = rman_get_bustag(sc->pci_mem); in ixv_allocate_pci_resources()
1118 rman_get_bushandle(sc->pci_mem); in ixv_allocate_pci_resources()
1144 if (sc->pci_mem != NULL) in ixv_free_pci_resources()
1146 rman_get_rid(sc->pci_mem), sc->pci_mem); in ixv_free_pci_resources()
H A Dixgbe.h364 struct resource *pci_mem; member
H A Dif_ix.c2847 sc->pci_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ixgbe_allocate_pci_resources()
2850 if (!(sc->pci_mem)) { in ixgbe_allocate_pci_resources()
2856 sc->osdep.mem_bus_space_tag = rman_get_bustag(sc->pci_mem); in ixgbe_allocate_pci_resources()
2858 rman_get_bushandle(sc->pci_mem); in ixgbe_allocate_pci_resources()
4103 if (sc->pci_mem != NULL) in ixgbe_free_pci_resources()
4105 rman_get_rid(sc->pci_mem), sc->pci_mem); in ixgbe_free_pci_resources()
/freebsd/sys/dev/liquidio/base/
H A Dlio_device.h172 struct resource *pci_mem; member