/linux-master/tools/testing/selftests/mm/ |
H A D | mkdirty.c | 64 const size_t mmap_size = 2 * thpsize; local 67 mmap_mem = mmap(NULL, mmap_size, prot, MAP_PRIVATE|MAP_ANON, 77 munmap(mmap_mem, mmap_size); 82 *_mmap_size = mmap_size; 125 size_t mmap_size; local 131 mem = mmap_thp_range(PROT_READ, &mmap_mem, &mmap_size); 155 munmap(mmap_mem, mmap_size); 193 size_t mmap_size; local 197 mem = mmap_thp_range(PROT_READ|PROT_WRITE, &mmap_mem, &mmap_size); 226 munmap(mmap_mem, mmap_size); 232 size_t mmap_size; local [all...] |
H A D | cow.c | 774 size_t size, mmap_size, mremap_size; local 778 mmap_size = 2 * thpsize; 779 mmap_mem = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, 909 munmap(mmap_mem, mmap_size); 1468 size_t mmap_size; local 1479 mmap_size = 2 * pmdsize; 1480 mmap_mem = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, 1486 mmap_smem = mmap(NULL, mmap_size, PROT_READ, 1519 munmap(mmap_mem, mmap_size); 1521 munmap(mmap_smem, mmap_size); [all...] |
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
H A D | misc.c | 173 size_t mmap_size; local 182 mmap_size = page_size * (1 + mmap_pages); 183 buff = mmap(NULL, mmap_size,
|
/linux-master/drivers/spi/ |
H A D | spi-ti-qspi.c | 46 size_t mmap_size; member in struct:ti_qspi 583 if (op->addr.val < qspi->mmap_size) { 585 if (op->addr.val + op->data.nbytes > qspi->mmap_size) { 586 max_len = qspi->mmap_size - op->addr.val; 620 if (from + op->data.nbytes > qspi->mmap_size) 810 qspi->mmap_size = resource_size(res_mmap);
|
H A D | atmel-quadspi.c | 153 resource_size_t mmap_size; member in struct:atmel_qspi 418 if (op->addr.val + op->data.nbytes > aq->mmap_size) 619 aq->mmap_size = resource_size(res);
|
/linux-master/drivers/hsi/clients/ |
H A D | cmt_speech.c | 45 unsigned long mmap_size; member in struct:cs_char 92 unsigned long mmap_size; member in struct:cs_hsi_iface 821 } else if ((buf_size_aligned + ctrl_size_aligned) >= hi->mmap_size) { 985 unsigned long mmap_base, unsigned long mmap_size) 1001 hsi_if->mmap_size = mmap_size; 1303 cs_char_data.mmap_size = CS_MMAP_SIZE; 984 cs_hsi_start(struct cs_hsi_iface **hi, struct hsi_client *cl, unsigned long mmap_base, unsigned long mmap_size) argument
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_ringbufs.c | 467 size_t mmap_size; member in struct:perf_buffer 481 size_t mmap_mask = pb->mmap_size - 1;
|
/linux-master/fs/ |
H A D | aio.c | 123 unsigned long mmap_size; member in struct:kioctx 549 ctx->mmap_size = nr_pages * PAGE_SIZE; 550 pr_debug("attempting mmap of %lu bytes\n", ctx->mmap_size); 553 ctx->mmap_size = 0; 558 ctx->mmap_base = do_mmap(ctx->aio_ring_file, 0, ctx->mmap_size, 563 ctx->mmap_size = 0; 836 if (ctx->mmap_size) 837 vm_munmap(ctx->mmap_base, ctx->mmap_size); 882 if (ctx->mmap_size) 883 vm_munmap(ctx->mmap_base, ctx->mmap_size); [all...] |
/linux-master/tools/perf/util/ |
H A D | session.c | 2155 prefetch_event(char *buf, u64 head, size_t mmap_size, argument 2165 if (head + sizeof(event->header) > mmap_size) 2173 if (head + event_size <= mmap_size) 2181 if (event_size <= mmap_size - head % page_size) { 2186 /* Invalid input. Event size should never exceed mmap_size. */ 2187 pr_debug("%s: head=%#" PRIx64 " event->header.size=%#x, mmap_size=%#zx:" 2188 " fuzzed or compressed perf.data?\n", __func__, head, event_size, mmap_size); 2194 fetch_mmaped_event(u64 head, size_t mmap_size, char *buf, bool needs_swap) argument 2196 return prefetch_event(buf, head, mmap_size, needs_swap, ERR_PTR(-EINVAL)); 2200 fetch_decomp_event(u64 head, size_t mmap_size, cha argument 2267 size_t mmap_size; member in struct:reader [all...] |
H A D | auxtrace.h | 238 * @mmap_size: size of the mmap at @mmap_addr 260 size_t mmap_size; member in struct:auxtrace_buffer
|
H A D | auxtrace.c | 1163 buffer->mmap_size = size; 1174 munmap(buffer->mmap_addr, buffer->mmap_size); 1176 buffer->mmap_size = 0;
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 722 ret = munmap(region->mmap_start, region->mmap_size); 726 ret = munmap(region->mmap_alias, region->mmap_size); 1023 region->mmap_size = mem_size; 1045 region->mmap_size += alignment; 1049 region->fd = kvm_memfd_alloc(region->mmap_size, 1052 region->mmap_start = mmap(NULL, region->mmap_size, 1128 region->mmap_alias = mmap(NULL, region->mmap_size,
|
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 734 size_t mmap_size = 0; local 744 mmap_data = bpf_map__initial_value(map, &mmap_size); 745 print_hex(mmap_data, mmap_size);
|
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 59 size_t mmap_size; member in struct:userspace_mem_region
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 12784 perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size, argument 12797 ehdr = base + (data_tail & (mmap_size - 1)); 12800 if (((void *)ehdr) + ehdr_size > base + mmap_size) { 12802 size_t len_first = base + mmap_size - copy_start; 12863 size_t mmap_size; member in struct:perf_buffer 12877 munmap(cpu_buf->base, pb->mmap_size + pb->page_size)) 12936 cpu_buf->base = mmap(NULL, pb->mmap_size + pb->page_size, 13072 pb->mmap_size = pb->page_size * page_cnt; 13220 ret = perf_event_read_simple(cpu_buf->base, pb->mmap_size, 13293 *buf_size = pb->mmap_size; [all...] |