/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo_manager.c | 56 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_get_node() local 57 struct drm_mm *mm = &rman->mm; in ttm_bo_man_get_node() 70 mtx_lock(&rman->lock); in ttm_bo_man_get_node() 75 mtx_unlock(&rman->lock); in ttm_bo_man_get_node() 82 mtx_unlock(&rman->lock); in ttm_bo_man_get_node() 93 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_put_node() local 96 mtx_lock(&rman->lock); in ttm_bo_man_put_node() 98 mtx_unlock(&rman->lock); in ttm_bo_man_put_node() 106 struct ttm_range_manager *rman; in ttm_bo_man_init() local 109 rman = malloc(sizeof(*rman), M_TTM_RMAN, M_ZERO | M_WAITOK); in ttm_bo_man_init() [all …]
|
/freebsd/sys/sys/ |
H A D | rman.h | 113 struct rman { struct 116 TAILQ_ENTRY(rman) rm_link; /* link in list of all rmans */ argument 122 TAILQ_HEAD(rman_head, rman); argument 126 int rman_first_free_region(struct rman *rm, rman_res_t *start, rman_res_t *end); 140 int rman_fini(struct rman *rm); 141 int rman_init(struct rman *rm); 142 int rman_init_from_resource(struct rman *rm, struct resource *r); 143 int rman_last_free_region(struct rman *rm, rman_res_t *start, rman_res_t *end); 145 int rman_manage_region(struct rman *rm, rman_res_t start, rman_res_t end); 146 int rman_is_region_manager(const struct resource *r, const struct rman *rm); [all …]
|
/freebsd/usr.sbin/devinfo/ |
H A D | devinfo.c | 65 struct devinfo_rman *rman; in print_resource() local 68 rman = devinfo_handle_to_rman(res->dr_rman); in print_resource() 69 hexmode = (rman->dm_size > 1000) || (rman->dm_size == 0); in print_resource() 106 print_device_rman_resources(struct devinfo_rman *rman, void *arg) in print_device_rman_resources() argument 115 if (devinfo_foreach_rman_resource(rman, in print_device_rman_resources() 121 printf("%s:\n", rman->dm_desc); in print_device_rman_resources() 125 devinfo_foreach_rman_resource(rman, in print_device_rman_resources() 201 print_rman(struct devinfo_rman *rman, void *arg __unused) in print_rman() argument 203 printf("%s:\n", rman->dm_desc); in print_rman() 204 devinfo_foreach_rman_resource(rman, print_rman_resource, 0); in print_rman()
|
/freebsd/sys/kern/ |
H A D | subr_rman.c | 92 struct rman *r_rm; /* resource manager from whence this came */ 107 static int int_rman_release_resource(struct rman *rm, struct resource_i *r); 122 rman_init(struct rman *rm) in rman_init() 152 rman_manage_region(struct rman *rm, rman_res_t start, rman_res_t end) in rman_manage_region() 230 rman_init_from_resource(struct rman *rm, struct resource *r) in rman_init_from_resource() 240 rman_fini(struct rman *rm) in rman_fini() 272 rman_first_free_region(struct rman *rm, rman_res_t *start, rman_res_t *end) in rman_first_free_region() 290 rman_last_free_region(struct rman *rm, rman_res_t *start, rman_res_t *end) in rman_last_free_region() 312 struct rman *rm; in rman_adjust_resource() 432 rman_reserve_resource(struct rman *rm, rman_res_t start, rman_res_t end, in rman_reserve_resource() [all …]
|
/freebsd/sys/dev/vmd/ |
H A D | vmd.c | 44 #include <sys/rman.h> 142 if (sc->psc.bus.rman.rm_end != 0) in vmd_free() 143 rman_fini(&sc->psc.bus.rman); in vmd_free() 144 if (sc->psc.mem.rman.rm_end != 0) in vmd_free() 145 rman_fini(&sc->psc.mem.rman); in vmd_free() 311 bus->rman.rm_start = 0; in vmd_attach() 312 bus->rman.rm_end = PCI_BUSMAX; in vmd_attach() 313 bus->rman.rm_type = RMAN_ARRAY; in vmd_attach() 315 bus->rman.rm_descr = strdup(buf, M_DEVBUF); in vmd_attach() 316 error = rman_init(&bus->rman); in vmd_attach() [all...] |
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_mc.h | 90 struct rman dpio_rman; 91 struct rman dpbp_rman; 92 struct rman dpcon_rman; 93 struct rman dpmcp_rman; 182 struct rman *dpaa2_mc_rman(device_t mcdev, int type, u_int flags);
|
H A D | dpaa2_mc.c | 309 struct rman *rm; in dpaa2_mc_alloc_resource() 347 struct rman *rm; in dpaa2_mc_adjust_resource() 359 struct rman *rm; in dpaa2_mc_release_resource() 370 struct rman *rm; in dpaa2_mc_activate_resource() 381 struct rman *rm; in dpaa2_mc_deactivate_resource() 453 struct rman *rm; in dpaa2_mc_manage_dev() 492 struct rman *rm; in dpaa2_mc_get_free_dev() 726 struct rman *
|
/freebsd/sys/dev/pci/ |
H A D | pci_iov.c | 365 return (rman_manage_region(&iov->rman, start, end)); in pci_iov_alloc_bar() 528 iov->rman.rm_start = 0; in pci_iov_init_rman() 529 iov->rman.rm_end = ~0; in pci_iov_init_rman() 530 iov->rman.rm_type = RMAN_ARRAY; in pci_iov_init_rman() 533 iov->rman.rm_descr = iov->rman_name; in pci_iov_init_rman() 535 error = rman_init(&iov->rman); in pci_iov_init_rman() 571 return (rman_manage_region(&iov->rman, start, end)); in pci_iov_alloc_bar_ea() 790 rman_fini(&iov->rman); in pci_iov_config() 900 rman_fini(&iov->rman); in pci_iov_delete_iov_children() 1036 res = rman_reserve_resource(&iov->rman, bar_start, bar_end, in pci_vf_alloc_mem_resource() [all …]
|
H A D | pci_host_generic.h | 74 struct rman pmem_rman; 75 struct rman mem_rman; 76 struct rman io_rman;
|
H A D | pci_pci.c | 48 #include <sys/rman.h> 158 if (rman_is_region_manager(r, &sc->io.rman)) in pcib_get_resource_window() 162 /* Prefetchable resources may live in either memory rman. */ in pcib_get_resource_window() 164 rman_is_region_manager(r, &sc->pmem.rman)) in pcib_get_resource_window() 166 if (rman_is_region_manager(r, &sc->mem.rman)) in pcib_get_resource_window() 182 return (rman_is_region_manager(r, &sc->bus.rman)); in pcib_is_resource_managed() 305 error = rman_manage_region(&w->rman, rman_get_start(res[i]), in pcib_add_window_resources() 308 panic("Failed to add resource to rman"); in pcib_add_window_resources() 426 w->rman.rm_start = 0; in pcib_alloc_window() 427 w->rman in pcib_alloc_window() [all...] |
H A D | pci_iov_private.h | 43 struct rman rman; member
|
H A D | pcib_private.h | 74 struct rman rman; member 88 struct rman rman; member
|
/freebsd/sys/dev/ofw/ |
H A D | ofwpci.h | 68 struct rman sc_io_rman; 69 struct rman sc_mem_rman; 70 struct rman sc_pmem_rman;
|
/freebsd/sys/dev/puc/ |
H A D | puc_bfe.h | 54 struct rman sc_ioport; 55 struct rman sc_iomem; 56 struct rman sc_irq;
|
/freebsd/sys/arm64/cavium/ |
H A D | thunder_pcie_pem.h | 42 struct rman mem_rman; 43 struct rman io_rman;
|
/freebsd/lib/libdevinfo/ |
H A D | devinfo.h | 124 devinfo_foreach_rman_resource(struct devinfo_rman *rman, 133 devinfo_foreach_rman(int (* fn)(struct devinfo_rman *rman, void *arg),
|
/freebsd/sys/dev/dpaa/ |
H A D | fman.h | 40 struct rman rman; member
|
H A D | fman.c | 99 if (rman_is_region_manager(res, &sc->rman) != 0) { in fman_activate_resource() 188 res = rman_reserve_resource(&sc->rman, start, in fman_alloc_resource() 340 sc->rman.rm_type = RMAN_ARRAY; in fman_init() 341 sc->rman.rm_descr = "FMan range"; in fman_init() 342 rman_init_from_resource(&sc->rman, sc->mem_res); in fman_init()
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_private.h | 200 struct rman ht_mem_rman; /**< host memory manager */ 201 struct rman br_mem_rman; /**< bridged memory manager */ 202 struct rman br_irq_rman; /**< bridged irq manager */
|
/freebsd/sys/powerpc/powerpc/ |
H A D | nexus.c | 64 static struct rman intr_rman; 65 static struct rman mem_rman; 231 static struct rman *
|
/freebsd/sys/powerpc/ps3/ |
H A D | ps3bus.c | 40 #include <sys/rman.h> 60 static struct rman *ps3bus_get_rman(device_t bus, int type, u_int flags); 140 struct rman sc_mem_rman; 141 struct rman sc_intr_rman; 175 ps3bus_resources_init(struct rman *rm, int bus_index, int dev_index, in ps3bus_resources_init() 257 ps3bus_resources_init_by_type(struct rman *rm, int bus_index, int dev_index, in ps3bus_resources_init_by_type() 533 static struct rman *
|
/freebsd/sys/dev/bhnd/cores/chipc/ |
H A D | chipc.c | 52 #include <sys/rman.h> 132 static struct rman *chipc_get_rman(device_t dev, int type, u_int flags); 672 /* Add to rman's managed range */ in chipc_rman_init_regions() 746 * Return the rman instance for a given resource @p type, if any. 752 static struct rman * 778 struct rman *rm; in chipc_alloc_resource() 837 * The rman API does not support sharing resources that are not in chipc_alloc_resource() 856 /* Make our rman reservation */ in chipc_alloc_resource() 880 struct rman *rm; in chipc_release_resource() 920 struct rman *r in chipc_adjust_resource() [all...] |
/freebsd/sys/riscv/riscv/ |
H A D | nexus.c | 73 static struct rman mem_rman; 74 static struct rman irq_rman; 209 static struct rman *
|
/freebsd/sys/arm/arm/ |
H A D | nexus.c | 76 static struct rman mem_rman; 77 static struct rman irq_rman; 222 static struct rman *
|
/freebsd/sys/amd64/include/ |
H A D | nexusvar.h | 39 extern struct rman irq_rman, drq_rman, port_rman, mem_rman;
|