Searched refs:alloc_sizes (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/mm/ |
D | percpu-stats.c | 57 int *alloc_sizes, *p; in chunk_map_stats() local 62 alloc_sizes = buffer; in chunk_map_stats() 91 alloc_sizes[as_len] = 1; in chunk_map_stats() 95 alloc_sizes[as_len] = -1; in chunk_map_stats() 98 alloc_sizes[as_len++] *= (end - start) * PCPU_MIN_ALLOC_SIZE; in chunk_map_stats() 108 sort(alloc_sizes, as_len, sizeof(int), cmpint, NULL); in chunk_map_stats() 111 for (i = 0, p = alloc_sizes; *p < 0 && i < as_len; i++, p++) { in chunk_map_stats() 116 cur_min_alloc = alloc_sizes[i]; in chunk_map_stats() 117 cur_med_alloc = alloc_sizes[(i + as_len - 1) / 2]; in chunk_map_stats() 118 cur_max_alloc = alloc_sizes[as_len - 1]; in chunk_map_stats()
|
/Linux-v5.15/drivers/iommu/ |
D | dma-iommu.c | 677 unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap; in __iommu_dma_alloc_noncontiguous() local 685 min_size = alloc_sizes & -alloc_sizes; in __iommu_dma_alloc_noncontiguous() 688 alloc_sizes |= PAGE_SIZE; in __iommu_dma_alloc_noncontiguous() 693 alloc_sizes = min_size; in __iommu_dma_alloc_noncontiguous() 696 pages = __iommu_dma_alloc_pages(dev, count, alloc_sizes >> PAGE_SHIFT, in __iommu_dma_alloc_noncontiguous()
|