Lines Matching refs:resource_specs
205 for (u_int i = 0; hr->resource_specs[i].type != -1; i++) { in bhndb_host_resource_for_range()
208 if (hr->resource_specs[i].type != type) in bhndb_host_resource_for_range()
239 rspecs = hr->resource_specs; in bhndb_host_resource_for_regwin()
453 for (u_int i = 0; r->res->resource_specs[i].type != -1; i++) { in bhndb_alloc_resources()
457 if (r->res->resource_specs[i].type != SYS_RES_MEMORY) in bhndb_alloc_resources()
662 hr->resource_specs = NULL; in bhndb_alloc_host_resources()
669 for (size_t i = 0; hwcfg->resource_specs[i].type != -1; i++) in bhndb_alloc_host_resources()
716 hr->resource_specs = malloc(sizeof(hr->resource_specs[0]) * (nres + 1), in bhndb_alloc_host_resources()
721 hr->resource_specs[i] = hwcfg->resource_specs[i]; in bhndb_alloc_host_resources()
723 hr->resource_specs[nres].type = -1; in bhndb_alloc_host_resources()
730 error = bus_alloc_resources(hr->owner, hr->resource_specs, in bhndb_alloc_host_resources()
742 if (hr->resource_specs != NULL) in bhndb_alloc_host_resources()
743 free(hr->resource_specs, M_BHND); in bhndb_alloc_host_resources()
767 bus_release_resources(hr->owner, hr->resource_specs, hr->resources); in bhndb_release_host_resources()
773 free(hr->resource_specs, M_BHND); in bhndb_release_host_resources()