Lines Matching refs:region

122 	struct damon_region *region;
124 region = kmem_cache_alloc(damon_region_cache, GFP_KERNEL);
125 if (!region)
128 region->ar.start = start;
129 region->ar.end = end;
130 region->nr_accesses = 0;
131 INIT_LIST_HEAD(&region->list);
133 region->age = 0;
134 region->last_nr_accesses = 0;
136 return region;
163 * Check whether a region is intersecting an address range
243 /* no region intersects with this range */
511 * region->nr_accesses is the number of sampling intervals in the last
512 * aggregation interval that access to the region has found, and region->age is
604 /* Returns the size upper limit for each monitoring region */
741 * Reset the aggregated monitoring results ('nr_accesses' of each region).
788 * damos_skip_charged_region() - Check if the given region or starting part of
790 * @t: The target of the region.
791 * @rp: The pointer to the region.
800 * This function checks if a given region should be skipped or not for the
801 * reason. If only the starting part of the region has previously charged,
802 * this function splits the region into two so that the second one covers the
804 * region in *rp and returns false, so that the caller can apply DAMON action
807 * Return: true if the region should be entirely skipped, false otherwise.
1074 * Merge two adjacent regions into one region
1093 * sz_limit size upper limit of each region
1119 * sz_limit size upper limit of each region
1136 * Split a region in two
1138 * r the region to be split
1139 * sz_r size of the first sub-region that will be made
1158 /* Split every region in the given target into 'nr_subs' regions */
1171 * Randomly select size of left sub-region to be at
1172 * least 10 percent and at most 90% of original region
1176 /* Do not allow blank region */
1187 * Split every target region into randomly-sized small regions
1189 * This function splits every target region into random-sized small regions if
1209 /* Maybe the middle of the region has different access frequency */
1446 * struct damon_system_ram_region - System RAM resource address region of
1448 * @start: Start address of the region (inclusive).
1449 * @end: End address of the region (exclusive).
1487 * damon_set_region_biggest_system_ram_default() - Set the region of the given
1489 * @t: The monitoring target to set the region.
1490 * @start: The pointer to the start address of the region.
1491 * @end: The pointer to the end address of the region.
1493 * This function sets the region of @t as requested by @start and @end. If the
1495 * 'System RAM' resource and sets the region to cover the resource. In the