1 /* SPDX-License-Identifier: GPL-2.0 */
10 int add_range(struct range
*range
, int az
, int nr_range
,
14 int add_range_with_merge(struct range
*range
, int az
, int nr_range
,
17 void subtract_range(struct range
*range
, int az
, u64 start
, u64 end
);
19 int clean_sort_range(struct range
*range
, int az
);
21 void sort_range(struct range
*range
, int nr_range
);
23 #define MAX_RESOURCE ((resource_size_t)~0)
24 static inline resource_size_t
cap_resource(u64 val
)
26 if (val
> MAX_RESOURCE
)