Searched refs:nr_alloc (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/tools/lib/api/fd/ |
D | array.c | 17 fda->nr = fda->nr_alloc = 0; in fdarray__init() 24 int nr_alloc = fda->nr_alloc + nr; in fdarray__grow() local 25 size_t psize = sizeof(fda->priv[0]) * nr_alloc; in fdarray__grow() 26 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow() 38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 39 memset(&priv[fda->nr_alloc], 0, sizeof(fda->priv[0]) * nr); in fdarray__grow() 41 fda->nr_alloc = nr_alloc; in fdarray__grow() 47 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow) in fdarray__new() argument 52 if (fdarray__grow(fda, nr_alloc)) { in fdarray__new() 80 if (fda->nr == fda->nr_alloc && in fdarray__add()
|
D | array.h | 21 int nr_alloc; member 41 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow); 54 return fda->nr_alloc - fda->nr; in fdarray__available_entries()
|
/Linux-v5.10/mm/ |
D | percpu-internal.h | 55 int nr_alloc; /* # of allocations */ member 167 u64 nr_alloc; /* lifetime # of allocations */ member 203 pcpu_stats.nr_alloc++; in pcpu_stats_area_alloc() 212 chunk->nr_alloc++; in pcpu_stats_area_alloc() 230 chunk->nr_alloc--; in pcpu_stats_area_dealloc()
|
D | percpu-stats.c | 45 chunk->nr_alloc); in find_max_nr_alloc() 125 P("nr_alloc", chunk->nr_alloc); in chunk_map_stats() 191 PU(nr_alloc); in percpu_stats_show()
|
/Linux-v5.10/tools/perf/tests/ |
D | fdarray.c | 11 fda->nr = fda->nr_alloc; in fdarray__init_revents() 43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter() 45 nr_fds, fda->nr_alloc); in test__fdarray__filter() 53 nr_fds, fda->nr_alloc); in test__fdarray__filter()
|
/Linux-v5.10/tools/perf/ |
D | builtin-kmem.c | 286 int nr_alloc; member 829 pstat->nr_alloc++; in evsel__process_page_alloc_event() 838 pstat->nr_alloc++; in evsel__process_page_alloc_event() 848 pstat->nr_alloc++; in evsel__process_page_alloc_event() 912 pstat->nr_alloc--; in evsel__process_page_free_event() 915 if (pstat->nr_alloc == 0) { in evsel__process_page_free_event() 1081 data->nr_alloc, data->order, in __print_page_alloc_result() 1123 data->nr_alloc, data->order, in __print_page_caller_result() 1555 if (l->nr_alloc < r->nr_alloc) in page_hit_cmp() 1557 else if (l->nr_alloc > r->nr_alloc) in page_hit_cmp()
|
/Linux-v5.10/fs/fuse/ |
D | dax.c | 256 int ret, i = 0, nr_alloc; in dmap_removemapping_list() local 258 nr_alloc = min_t(unsigned int, num, FUSE_REMOVEMAPPING_MAX_ENTRY); in dmap_removemapping_list() 259 remove_one = kmalloc_array(nr_alloc, sizeof(*remove_one), GFP_NOFS); in dmap_removemapping_list() 270 if (i >= nr_alloc || num == 0) { in dmap_removemapping_list()
|
/Linux-v5.10/kernel/power/ |
D | snapshot.c | 1522 unsigned long nr_alloc = 0; in preallocate_image_pages() local 1536 nr_alloc++; in preallocate_image_pages() 1539 return nr_alloc; in preallocate_image_pages()
|
/Linux-v5.10/drivers/net/ethernet/ |
D | jme.c | 1944 int idx, nr_alloc, mask = jme->tx_ring_mask; in jme_alloc_txdesc() local 1947 nr_alloc = skb_shinfo(skb)->nr_frags + 2; in jme_alloc_txdesc() 1949 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1952 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 1954 txring->next_to_use = (txring->next_to_use + nr_alloc) & mask; in jme_alloc_txdesc()
|