Home
last modified time | relevance | path

Searched refs:rman (Results 1 – 25 of 66) sorted by relevance

123

/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo_manager.c56 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 Drman.h113 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 Ddevinfo.c65 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 Dsubr_rman.c92 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 Dvmd.c44 #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 Ddpaa2_mc.h90 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 Ddpaa2_mc.c309 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 Dpci_iov.c365 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 Dpci_host_generic.h74 struct rman pmem_rman;
75 struct rman mem_rman;
76 struct rman io_rman;
H A Dpci_pci.c48 #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 Dpci_iov_private.h43 struct rman rman; member
H A Dpcib_private.h74 struct rman rman; member
88 struct rman rman; member
/freebsd/sys/dev/ofw/
H A Dofwpci.h68 struct rman sc_io_rman;
69 struct rman sc_mem_rman;
70 struct rman sc_pmem_rman;
/freebsd/sys/dev/puc/
H A Dpuc_bfe.h54 struct rman sc_ioport;
55 struct rman sc_iomem;
56 struct rman sc_irq;
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_pem.h42 struct rman mem_rman;
43 struct rman io_rman;
/freebsd/lib/libdevinfo/
H A Ddevinfo.h124 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 Dfman.h40 struct rman rman; member
H A Dfman.c99 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 Dbhndb_private.h200 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 Dnexus.c64 static struct rman intr_rman;
65 static struct rman mem_rman;
231 static struct rman *
/freebsd/sys/powerpc/ps3/
H A Dps3bus.c40 #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 Dchipc.c52 #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 Dnexus.c73 static struct rman mem_rman;
74 static struct rman irq_rman;
209 static struct rman *
/freebsd/sys/arm/arm/
H A Dnexus.c76 static struct rman mem_rman;
77 static struct rman irq_rman;
222 static struct rman *
/freebsd/sys/amd64/include/
H A Dnexusvar.h39 extern struct rman irq_rman, drq_rman, port_rman, mem_rman;

123