Lines Matching refs:size_t
46 size_t n_entries;
55 size_t shared_alloc_size;
56 size_t percpu_alloc_size;
57 size_t histogram_alloc_size;
81 static bool __check_shared_memory(size_t alloc_size)
83 size_t a;
97 static bool check_shared_memory(size_t alloc_size)
110 static bool claim_shared_memory(size_t alloc_size)
126 static void free_shared_memory(size_t alloc_size)
143 static void *dm_kvzalloc(size_t alloc_size, int node)
159 static void dm_kvfree(void *ptr, size_t alloc_size)
214 size_t ni;
269 size_t ni;
270 size_t shared_alloc_size;
271 size_t percpu_alloc_size;
272 size_t histogram_alloc_size;
285 if (n_entries != (size_t)n_entries || !(size_t)(n_entries + 1))
292 percpu_alloc_size = (size_t)n_entries * sizeof(struct dm_stat_percpu);
296 histogram_alloc_size = (n_histogram_entries + 1) * (size_t)n_entries * sizeof(unsigned long long);
297 if (histogram_alloc_size / (n_histogram_entries + 1) != (size_t)n_entries * sizeof(unsigned long long))
553 static void dm_stat_for_entry(struct dm_stat *s, size_t entry,
631 size_t entry;
712 struct dm_stat *s, size_t x)
761 static void __dm_stat_clear(struct dm_stat *s, size_t idx_start, size_t idx_end,
764 size_t x;
845 size_t idx_start, size_t idx_len,
850 size_t x;
852 size_t idx_end;