Lines Matching refs:conflict

259 	struct resource *conflict;  in request_resource_conflict()  local
262 conflict = __request_resource(root, new); in request_resource_conflict()
264 return conflict; in request_resource_conflict()
276 struct resource *conflict; in request_resource() local
278 conflict = request_resource_conflict(root, new); in request_resource()
279 return conflict ? -EBUSY : 0; in request_resource()
755 struct resource *conflict; in reallocate_resource() local
779 conflict = __request_resource(root, old); in reallocate_resource()
780 BUG_ON(conflict); in reallocate_resource()
923 struct resource *conflict; in insert_resource_conflict() local
926 conflict = __insert_resource(parent, new); in insert_resource_conflict()
928 return conflict; in insert_resource_conflict()
943 struct resource *conflict; in insert_resource() local
945 conflict = insert_resource_conflict(parent, new); in insert_resource()
946 return conflict ? -EBUSY : 0; in insert_resource()
965 struct resource *conflict; in insert_resource_expand_to_fit() local
967 conflict = __insert_resource(root, new); in insert_resource_expand_to_fit()
968 if (!conflict) in insert_resource_expand_to_fit()
970 if (conflict == root) in insert_resource_expand_to_fit()
974 if (conflict->start < new->start) in insert_resource_expand_to_fit()
975 new->start = conflict->start; in insert_resource_expand_to_fit()
976 if (conflict->end > new->end) in insert_resource_expand_to_fit()
977 new->end = conflict->end; in insert_resource_expand_to_fit()
979 pr_info("Expanded resource %s due to conflict with %s\n", new->name, conflict->name); in insert_resource_expand_to_fit()
1081 struct resource *conflict; in __reserve_region_with_split() local
1097 conflict = __request_resource(parent, res); in __reserve_region_with_split()
1098 if (!conflict) { in __reserve_region_with_split()
1107 if (conflict->start <= res->start && in __reserve_region_with_split()
1108 conflict->end >= res->end) { in __reserve_region_with_split()
1115 if (conflict->start > res->start) { in __reserve_region_with_split()
1117 res->end = conflict->start - 1; in __reserve_region_with_split()
1118 if (conflict->end < end) { in __reserve_region_with_split()
1125 next_res->start = conflict->end + 1; in __reserve_region_with_split()
1131 res->start = conflict->end + 1; in __reserve_region_with_split()
1257 struct resource *conflict; in __request_region_locked() local
1263 conflict = __request_resource(parent, res); in __request_region_locked()
1264 if (!conflict) in __request_region_locked()
1271 if (conflict->desc == IORES_DESC_DEVICE_PRIVATE_MEMORY) { in __request_region_locked()
1273 conflict->name, conflict, res); in __request_region_locked()
1275 if (conflict != parent) { in __request_region_locked()
1276 if (!(conflict->flags & IORESOURCE_BUSY)) { in __request_region_locked()
1277 parent = conflict; in __request_region_locked()
1281 if (conflict->flags & flags & IORESOURCE_MUXED) { in __request_region_locked()
1580 struct resource *conflict, **ptr; in devm_request_resource() local
1588 conflict = request_resource_conflict(root, new); in devm_request_resource()
1589 if (conflict) { in devm_request_resource()
1591 new, conflict->name, conflict); in devm_request_resource()