Lines Matching refs:resource

46 		const struct ipa_resource *resource;  in ipa_resource_limits_valid()  local
48 resource = &data->resource_src[i]; in ipa_resource_limits_valid()
50 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
59 const struct ipa_resource *resource; in ipa_resource_limits_valid() local
61 resource = &data->resource_dst[i]; in ipa_resource_limits_valid()
63 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
93 const struct ipa_resource *resource; in ipa_resource_config_src() local
96 resource = &data->resource_src[resource_type]; in ipa_resource_config_src()
99 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_src()
101 &resource->limits[0], ylimits); in ipa_resource_config_src()
106 ylimits = group_count == 3 ? NULL : &resource->limits[3]; in ipa_resource_config_src()
108 &resource->limits[2], ylimits); in ipa_resource_config_src()
113 ylimits = group_count == 5 ? NULL : &resource->limits[5]; in ipa_resource_config_src()
115 &resource->limits[4], ylimits); in ipa_resource_config_src()
120 ylimits = group_count == 7 ? NULL : &resource->limits[7]; in ipa_resource_config_src()
122 &resource->limits[6], ylimits); in ipa_resource_config_src()
130 const struct ipa_resource *resource; in ipa_resource_config_dst() local
133 resource = &data->resource_dst[resource_type]; in ipa_resource_config_dst()
136 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_dst()
138 &resource->limits[0], ylimits); in ipa_resource_config_dst()
143 ylimits = group_count == 3 ? NULL : &resource->limits[3]; in ipa_resource_config_dst()
145 &resource->limits[2], ylimits); in ipa_resource_config_dst()
150 ylimits = group_count == 5 ? NULL : &resource->limits[5]; in ipa_resource_config_dst()
152 &resource->limits[4], ylimits); in ipa_resource_config_dst()
157 ylimits = group_count == 7 ? NULL : &resource->limits[7]; in ipa_resource_config_dst()
159 &resource->limits[6], ylimits); in ipa_resource_config_dst()