Lines Matching full:resources
75 * Call BHNDB_SUSPEND_RESOURCE() for all resources in @p rl.
82 /* Suspend all child resources. */ in bhndb_do_suspend_resources()
84 /* Skip non-allocated resources */ in bhndb_do_suspend_resources()
98 * to find the child's resources and call BHNDB_SUSPEND_RESOURCE() for all
99 * child resources, ensuring that the device's allocated bridge resources
102 * Before suspending any resources, @p child is suspended by
129 /* Suspend all child resources. */ in bhnd_generic_br_suspend_child()
140 * to find the child's resources and call BHNDB_RESUME_RESOURCE() for all
141 * child resources, before delegating to bhnd_generic_resume_child().
166 /* Resume all resources */ in bhnd_generic_br_resume_child()
168 /* Skip non-allocated resources */ in bhnd_generic_br_resume_child()
175 /* Put all resources back into a suspend state */ in bhnd_generic_br_resume_child()
181 /* Now that all resources are resumed, resume child */ in bhnd_generic_br_resume_child()
183 /* Put all resources back into a suspend state */ in bhnd_generic_br_resume_child()
206 struct resource *r = hr->resources[i]; in bhndb_host_resource_for_range()
248 return (hr->resources[i]); in bhndb_host_resource_for_regwin()
261 * @param parent_dev The parent device from which host resources should be
406 /* Allocate host resources */ in bhndb_alloc_resources()
410 "could not allocate host resources on %s: %d\n", in bhndb_alloc_resources()
452 /* Add allocated memory resources to our host memory resource manager */ in bhndb_alloc_resources()
456 /* skip non-memory resources */ in bhndb_alloc_resources()
461 res = r->res->resources[i]; in bhndb_alloc_resources()
558 * Deallocate the given bridge resource structure and any associated resources.
600 /* Release host resources allocated through our parent. */ in bhndb_free_resources()
634 * Allocate host bus resources defined by @p hwcfg.
636 * On success, the caller assumes ownership of the allocated host resources,
639 * @param[out] resources On success, the allocated host resources.
641 * @param parent_dev The parent device from which host resources
645 * resources to be allocated
648 bhndb_alloc_host_resources(struct bhndb_host_resources **resources, in bhndb_alloc_host_resources() argument
663 hr->resources = NULL; in bhndb_alloc_host_resources()
726 hr->resources = malloc(sizeof(hr->resources[0]) * nres, M_BHND, in bhndb_alloc_host_resources()
729 /* Allocate host resources */ in bhndb_alloc_host_resources()
731 hr->resources); in bhndb_alloc_host_resources()
733 device_printf(dev, "could not allocate bridge resources via " in bhndb_alloc_host_resources()
738 *resources = hr; in bhndb_alloc_host_resources()
745 if (hr->resources != NULL) in bhndb_alloc_host_resources()
746 free(hr->resources, M_BHND); in bhndb_alloc_host_resources()
760 * Deallocate a set of bridge host resources.
762 * @param hr The resources to be freed.
767 bus_release_resources(hr->owner, hr->resource_specs, hr->resources); in bhndb_release_host_resources()
772 free(hr->resources, M_BHND); in bhndb_release_host_resources()