Lines Matching refs:res_type
48 static enum vnic_res_type _to_vnic_res_type(enum usnic_vnic_res_type res_type)
59 if (res_type >= USNIC_VNIC_RES_TYPE_MAX)
62 return usnic_vnic_type_2_vnic_type[res_type];
65 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type)
76 if (res_type >= USNIC_VNIC_RES_TYPE_MAX)
79 return usnic_vnic_res_type_desc[res_type];
181 enum usnic_vnic_res_type res_type;
187 res_type = res_spec->resources[i].type;
191 usnic_vnic_res_type_to_str(res_type),
202 enum usnic_vnic_res_type res_type;
206 res_type = res_spec->resources[i].type;
209 if (res_type == USNIC_VNIC_RES_TYPE_EOL)
212 if (res_cnt > usnic_vnic_res_free_cnt(vnic, res_type))
352 enum usnic_vnic_res_type res_type;
379 for (res_type = USNIC_VNIC_RES_TYPE_EOL + 1;
380 res_type < USNIC_VNIC_RES_TYPE_MAX; res_type++) {
381 err = usnic_vnic_alloc_res_chunk(vnic, res_type,
382 &vnic->chunks[res_type]);
390 for (res_type--; res_type > USNIC_VNIC_RES_TYPE_EOL; res_type--)
391 usnic_vnic_free_res_chunk(&vnic->chunks[res_type]);
421 enum usnic_vnic_res_type res_type;
425 for (res_type = USNIC_VNIC_RES_TYPE_EOL + 1;
426 res_type < USNIC_VNIC_RES_TYPE_MAX; res_type++)
427 usnic_vnic_free_res_chunk(&vnic->chunks[res_type]);