Searched refs:nr_alloc (Results  1 – 8 of 8) sorted by relevance
| /Linux-v5.4/tools/lib/api/fd/ | 
| D | array.c | 16 	fda->nr		 = fda->nr_alloc = 0;  in fdarray__init()23 	int nr_alloc = fda->nr_alloc + nr;  in fdarray__grow()  local
 24 	size_t psize = sizeof(fda->priv[0]) * nr_alloc;  in fdarray__grow()
 25 	size_t size  = sizeof(struct pollfd) * nr_alloc;  in fdarray__grow()
 37 	fda->nr_alloc = nr_alloc;  in fdarray__grow()
 43 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow)  in fdarray__new()  argument
 48 		if (fdarray__grow(fda, nr_alloc)) {  in fdarray__new()
 76 	if (fda->nr == fda->nr_alloc &&  in fdarray__add()
 
 | 
| D | array.h | 21 	int	       nr_alloc;  member33 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow);
 46 	return fda->nr_alloc - fda->nr;  in fdarray__available_entries()
 
 | 
| /Linux-v5.4/mm/ | 
| D | percpu-internal.h | 36 	int			nr_alloc;	/* # of allocations */  member114 	u64 nr_alloc;		/* lifetime # of allocations */  member
 150 	pcpu_stats.nr_alloc++;  in pcpu_stats_area_alloc()
 159 	chunk->nr_alloc++;  in pcpu_stats_area_alloc()
 177 	chunk->nr_alloc--;  in pcpu_stats_area_dealloc()
 
 | 
| D | percpu-stats.c | 41 			max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc);  in find_max_nr_alloc()121 	P("nr_alloc", chunk->nr_alloc);  in chunk_map_stats()
 183 	PU(nr_alloc);  in percpu_stats_show()
 
 | 
| /Linux-v5.4/tools/perf/tests/ | 
| D | fdarray.c | 11 	fda->nr = fda->nr_alloc;  in fdarray__init_revents()42 	if (nr_fds != fda->nr_alloc) {  in test__fdarray__filter()
 44 			 nr_fds, fda->nr_alloc);  in test__fdarray__filter()
 52 			 nr_fds, fda->nr_alloc);  in test__fdarray__filter()
 
 | 
| /Linux-v5.4/tools/perf/ | 
| D | builtin-kmem.c | 289 	int 		nr_alloc;  member833 	pstat->nr_alloc++;  in perf_evsel__process_page_alloc_event()
 842 		pstat->nr_alloc++;  in perf_evsel__process_page_alloc_event()
 852 	pstat->nr_alloc++;  in perf_evsel__process_page_alloc_event()
 917 		pstat->nr_alloc--;  in perf_evsel__process_page_free_event()
 920 		if (pstat->nr_alloc == 0) {  in perf_evsel__process_page_free_event()
 1086 		       data->nr_alloc, data->order,  in __print_page_alloc_result()
 1128 		       data->nr_alloc, data->order,  in __print_page_caller_result()
 1560 	if (l->nr_alloc < r->nr_alloc)  in page_hit_cmp()
 1562 	else if (l->nr_alloc > r->nr_alloc)  in page_hit_cmp()
 
 | 
| /Linux-v5.4/kernel/power/ | 
| D | snapshot.c | 1516 	unsigned long nr_alloc = 0;  in preallocate_image_pages()  local1530 		nr_alloc++;  in preallocate_image_pages()
 1533 	return nr_alloc;  in preallocate_image_pages()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/ | 
| D | jme.c | 1950 	int idx, nr_alloc, mask = jme->tx_ring_mask;  in jme_alloc_txdesc()  local1953 	nr_alloc = skb_shinfo(skb)->nr_frags + 2;  in jme_alloc_txdesc()
 1955 	if (unlikely(atomic_read(&txring->nr_free) < nr_alloc))  in jme_alloc_txdesc()
 1958 	atomic_sub(nr_alloc, &txring->nr_free);  in jme_alloc_txdesc()
 1960 	txring->next_to_use = (txring->next_to_use + nr_alloc) & mask;  in jme_alloc_txdesc()
 
 |