Lines Matching refs:res

148 	pool_resource_t *res;
185 if ((res = pool_resource_create(conf, res_type, name)) ==
199 resource_get_max(res, &dmax) != PO_SUCCESS)
203 if (pool_put_ns_property(TO_ELEM(res), c_min_prop,
208 if (pool_put_ns_property(TO_ELEM(res), c_max_prop,
216 if (pool_walk_properties(TO_CONF(src), src, TO_ELEM(res),
224 pool_set_pair(TO_ELEM(res), src);
225 *e1 = TO_ELEM(res);
244 pool_resource_t *res;
260 res = pool_elem_res(pe);
261 ret = pool_resource_destroy(TO_CONF(pe), res);
307 dprintf("transferring: res, comp\n");
771 resource_allocate(const char *type, pool_resource_t **res, uint_t nelem)
779 pe = pool_conf_to_elem(TO_CONF(TO_ELEM(res[0])));
803 ret = pset_allocate_imp(res, nelem);
811 ret = resource_allocate_default(res, nelem);
823 resource_allocate_default(pool_resource_t **res, uint_t nelem)
840 resource_is_default(res[j]) == PO_TRUE)
841 default_res = res[j];
843 if (resource_get_max(res[j],
845 resource_get_min(res[j],
847 resource_get_size(res[j],
849 resource_get_pinned(res[j],
854 res_info[j].ri_res = res[j];
927 pset_allocate_imp(pool_resource_t **res, uint_t nelem)
953 qsort(res, nelem, sizeof (pool_resource_t *),
960 resource_is_default(res[j]) == PO_TRUE) {
961 default_res = res[j];
966 if (resource_get_max(res[j], &res_info[j].ri_max) == PO_FAIL ||
967 resource_get_min(res[j], &res_info[j].ri_min) == PO_FAIL ||
968 resource_get_size(res[j], &res_info[j].ri_oldsize) ==
970 resource_get_pinned(res[j],
985 res_info[j].ri_res = res[j];
992 dprintf("res allocation details\n");
993 pool_elem_dprintf(TO_ELEM(res[j]));
1157 pool_resource_t **res;
1166 if ((res = pool_query_pool_resources(conf, pool, &nelem, NULL)) ==
1170 for (i = 0; res[i] != NULL; i++) {
1172 pool_elem_t *elem = TO_ELEM(res[i]);
1183 free(res);
1197 pool_resource_t **res;
1200 if ((res = pool_query_pool_resources(conf, pool, &nelem, NULL)) ==
1204 for (i = 0; res[i] != NULL; i++) {
1205 if (pool_rm_property(conf, TO_ELEM(res[i]), "_importance") ==
1207 free(res);
1211 free(res);