Lines Matching refs:resource
47 const struct ipa_resource *resource; in ipa_resource_limits_valid() local
49 resource = &data->resource_src[i]; in ipa_resource_limits_valid()
51 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
60 const struct ipa_resource *resource; in ipa_resource_limits_valid() local
62 resource = &data->resource_dst[i]; in ipa_resource_limits_valid()
64 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
94 const struct ipa_resource *resource; in ipa_resource_config_src() local
97 resource = &data->resource_src[resource_type]; in ipa_resource_config_src()
100 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_src()
102 &resource->limits[0], ylimits); in ipa_resource_config_src()
107 ylimits = group_count == 3 ? NULL : &resource->limits[3]; in ipa_resource_config_src()
109 &resource->limits[2], ylimits); in ipa_resource_config_src()
114 ylimits = group_count == 5 ? NULL : &resource->limits[5]; in ipa_resource_config_src()
116 &resource->limits[4], ylimits); in ipa_resource_config_src()
121 ylimits = group_count == 7 ? NULL : &resource->limits[7]; in ipa_resource_config_src()
123 &resource->limits[6], ylimits); in ipa_resource_config_src()
131 const struct ipa_resource *resource; in ipa_resource_config_dst() local
134 resource = &data->resource_dst[resource_type]; in ipa_resource_config_dst()
137 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_dst()
139 &resource->limits[0], ylimits); in ipa_resource_config_dst()
144 ylimits = group_count == 3 ? NULL : &resource->limits[3]; in ipa_resource_config_dst()
146 &resource->limits[2], ylimits); in ipa_resource_config_dst()
151 ylimits = group_count == 5 ? NULL : &resource->limits[5]; in ipa_resource_config_dst()
153 &resource->limits[4], ylimits); in ipa_resource_config_dst()
158 ylimits = group_count == 7 ? NULL : &resource->limits[7]; in ipa_resource_config_dst()
160 &resource->limits[6], ylimits); in ipa_resource_config_dst()