Searched refs:nr_alloc (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/lib/api/fd/ |
| H A 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()
|
| H A D | array.h | 21 int nr_alloc; member 42 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow); 56 return fda->nr_alloc - fda->nr; in fdarray__available_entries()
|
| /linux/tools/perf/tests/ |
| H A 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/tools/perf/ |
| H A D | builtin-kmem.c | 300 int nr_alloc; 869 pstat->nr_alloc++; in evsel__process_page_alloc_event() 878 pstat->nr_alloc++; in evsel__process_page_alloc_event() 888 pstat->nr_alloc++; in evsel__process_page_free_event() 957 pstat->nr_alloc--; 960 if (pstat->nr_alloc == 0) { in process_sample_event() 1119 data->nr_alloc, data->order, in __print_page_caller_result() 1161 data->nr_alloc, data->order, in print_gfp_flags() 1593 if (l->nr_alloc < r->nr_alloc) 299 int nr_alloc; global() member [all...] |
| /linux/tools/objtool/ |
| H A D | elf.c | 1536 unsigned long nr_alloc; in elf_alloc_reloc() 1554 nr_alloc = max(64UL, roundup_pow_of_two(nr_relocs_new)); in elf_alloc_reloc() 1555 if (nr_alloc <= rsec->nr_alloc_relocs) in elf_alloc_reloc() 1565 rsec->data->d_buf = malloc(nr_alloc * elf_rela_size(elf)); in elf_alloc_reloc() 1574 nr_alloc * elf_rela_size(elf)); in elf_alloc_reloc() 1581 rsec->nr_alloc_relocs = nr_alloc; in elf_alloc_reloc() 1584 new_relocs = calloc(nr_alloc, sizeof(struct reloc)); in elf_alloc_reloc() 1522 unsigned long nr_alloc; elf_alloc_reloc() local
|
| /linux/drivers/net/ethernet/ |
| H A D | jme.c | 1935 int idx, nr_alloc, mask = jme->tx_ring_mask; in jme_alloc_txdesc() local 1938 nr_alloc = skb_shinfo(skb)->nr_frags + 2; in jme_alloc_txdesc() 1940 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1943 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 1945 txring->next_to_use = (txring->next_to_use + nr_alloc) & mask; in jme_alloc_txdesc()
|