Home
last modified time | relevance | path

Searched refs:mmap_size (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
Dsession.c2055 prefetch_event(char *buf, u64 head, size_t mmap_size, in prefetch_event() argument
2064 if (head + sizeof(event->header) > mmap_size) in prefetch_event()
2071 if (head + event->header.size <= mmap_size) in prefetch_event()
2079 " fuzzed or compressed perf.data?\n",__func__, head, event->header.size, mmap_size); in prefetch_event()
2085 fetch_mmaped_event(u64 head, size_t mmap_size, char *buf, bool needs_swap) in fetch_mmaped_event() argument
2087 return prefetch_event(buf, head, mmap_size, needs_swap, ERR_PTR(-EINVAL)); in fetch_mmaped_event()
2091 fetch_decomp_event(u64 head, size_t mmap_size, char *buf, bool needs_swap) in fetch_decomp_event() argument
2093 return prefetch_event(buf, head, mmap_size, needs_swap, NULL); in fetch_decomp_event()
2162 size_t mmap_size; in reader__process_events() local
2175 mmap_size = MMAP_SIZE; in reader__process_events()
[all …]
Dauxtrace.h234 size_t mmap_size; member
Dauxtrace.c1126 buffer->mmap_size = size; in auxtrace_buffer__get_data()
1137 munmap(buffer->mmap_addr, buffer->mmap_size); in auxtrace_buffer__put_data()
1139 buffer->mmap_size = 0; in auxtrace_buffer__put_data()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-ti-qspi.c47 size_t mmap_size; member
584 if (op->addr.val < qspi->mmap_size) { in ti_qspi_adjust_op_size()
586 if (op->addr.val + op->data.nbytes > qspi->mmap_size) { in ti_qspi_adjust_op_size()
587 max_len = qspi->mmap_size - op->addr.val; in ti_qspi_adjust_op_size()
621 if (from + op->data.nbytes > qspi->mmap_size) in ti_qspi_exec_mem_op()
808 qspi->mmap_size = resource_size(res_mmap); in ti_qspi_probe()
Datmel-quadspi.c152 resource_size_t mmap_size; member
423 if (op->addr.val + op->data.nbytes > aq->mmap_size) in atmel_qspi_exec_op()
575 aq->mmap_size = resource_size(res); in atmel_qspi_probe()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h22 size_t mmap_size; member
Dkvm_util.c480 ret = munmap(region->mmap_start, region->mmap_size); in __vm_mem_region_delete()
661 region->mmap_size = npages * vm->page_size; in vm_userspace_mem_region_add()
675 region->mmap_size += alignment; in vm_userspace_mem_region_add()
677 region->mmap_start = mmap(NULL, region->mmap_size, in vm_userspace_mem_region_add()
/kernel/linux/linux-5.10/fs/
Daio.c124 unsigned long mmap_size; member
520 ctx->mmap_size = nr_pages * PAGE_SIZE; in aio_setup_ring()
521 pr_debug("attempting mmap of %lu bytes\n", ctx->mmap_size); in aio_setup_ring()
524 ctx->mmap_size = 0; in aio_setup_ring()
529 ctx->mmap_base = do_mmap(ctx->aio_ring_file, 0, ctx->mmap_size, in aio_setup_ring()
534 ctx->mmap_size = 0; in aio_setup_ring()
799 if (ctx->mmap_size) in ioctx_alloc()
800 vm_munmap(ctx->mmap_base, ctx->mmap_size); in ioctx_alloc()
845 if (ctx->mmap_size) in kill_ioctx()
846 vm_munmap(ctx->mmap_base, ctx->mmap_size); in kill_ioctx()
[all …]
/kernel/linux/linux-5.10/drivers/hsi/clients/
Dcmt_speech.c45 unsigned long mmap_size; member
92 unsigned long mmap_size; member
821 } else if ((buf_size_aligned + ctrl_size_aligned) >= hi->mmap_size) { in check_buf_params()
985 unsigned long mmap_base, unsigned long mmap_size) in cs_hsi_start() argument
1001 hsi_if->mmap_size = mmap_size; in cs_hsi_start()
1303 cs_char_data.mmap_size = CS_MMAP_SIZE; in cs_char_open()
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/
Dcommand_buffer.c429 new_mmap_size = cb->mmap_size - (vma->vm_end - vma->vm_start); in cb_vm_close()
432 cb->mmap_size = new_mmap_size; in cb_vm_close()
519 cb->mmap_size = cb->size; in hl_cb_mmap()
Dhabanalabs.h457 u32 mmap_size; member
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c471 size_t mmap_size; member
485 size_t mmap_mask = pb->mmap_size - 1; in perfbuf_custom_consumer()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.h607 bpf_perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size,
Dlibbpf.c9886 bpf_perf_event_read_simple(void *mmap_mem, size_t mmap_size, size_t page_size, in bpf_perf_event_read_simple() argument
9899 ehdr = base + (data_tail & (mmap_size - 1)); in bpf_perf_event_read_simple()
9902 if (((void *)ehdr) + ehdr_size > base + mmap_size) { in bpf_perf_event_read_simple()
9904 size_t len_first = base + mmap_size - copy_start; in bpf_perf_event_read_simple()
9965 size_t mmap_size; member
9979 munmap(cpu_buf->base, pb->mmap_size + pb->page_size)) in perf_buffer__free_cpu_buf()
10038 cpu_buf->base = mmap(NULL, pb->mmap_size + pb->page_size, in perf_buffer__open_cpu_buf()
10153 pb->mmap_size = pb->page_size * page_cnt; in __perf_buffer__new()
10301 ret = bpf_perf_event_read_simple(cpu_buf->base, pb->mmap_size, in perf_buffer__process_records()