Searched refs:map_ptr (Results 1 - 16 of 16) sorted by relevance

/linux-master/tools/testing/selftests/mm/
H A Dksm_tests.c202 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0); local
204 if (!map_ptr) {
208 memset(map_ptr, data, map_size);
209 if (mprotect(map_ptr, map_size, prot)) {
211 munmap(map_ptr, map_size);
215 return map_ptr;
350 void *map_ptr; local
359 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count);
360 if (!map_ptr)
363 if (ksm_merge_pages(merge_type, map_ptr, page_siz
383 void *map_ptr; local
424 void *map_ptr; local
553 void *map_ptr, *map_ptr_orig; local
620 void *map_ptr; local
661 void *map_ptr; local
708 void *map_ptr; local
[all...]
/linux-master/tools/testing/selftests/arm64/mte/
H A Dcheck_mmap_options.c62 char *ptr, *map_ptr; local
69 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false);
70 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS)
73 ptr = map_ptr + UNDERFLOW;
79 munmap((void *)map_ptr, map_size);
84 mte_free_memory((void *)map_ptr, map_size, mem_type, false);
93 char *ptr, *map_ptr; local
105 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd);
106 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) {
110 ptr = map_ptr
132 char *ptr, *map_ptr; local
[all...]
H A Dcheck_child_memory.c108 char *ptr, *map_ptr; local
119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd);
120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) {
124 ptr = map_ptr + UNDERFLOW;
130 munmap((void *)map_ptr, map_size);
136 munmap((void *)map_ptr, map_size);
/linux-master/drivers/md/dm-vdo/
H A Dint-map.h26 int __must_check vdo_int_map_create(size_t initial_capacity, struct int_map **map_ptr);
H A Dint-map.c175 * @map_ptr: Output, a pointer to hold the new int_map.
179 int vdo_int_map_create(size_t initial_capacity, struct int_map **map_ptr) argument
204 *map_ptr = map;
H A Dblock-map.h337 struct block_map **map_ptr);
H A Dblock-map.c2861 struct block_map **map_ptr)
2913 *map_ptr = map;
2858 vdo_decode_block_map(struct block_map_state_2_0 state, block_count_t logical_blocks, struct vdo *vdo, struct recovery_journal *journal, nonce_t nonce, page_count_t cache_size, block_count_t maximum_age, struct block_map **map_ptr) argument
/linux-master/drivers/md/dm-vdo/indexer/
H A Dindex-page-map.h26 struct index_page_map **map_ptr);
H A Dindex-page-map.c36 struct index_page_map **map_ptr)
54 *map_ptr = map;
35 uds_make_index_page_map(const struct index_geometry *geometry, struct index_page_map **map_ptr) argument
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dfw.h120 __be64 map_ptr; member in struct:cmsg_bpf_event
H A Dverifier.c99 offmap = map_to_offmap(reg1->map_ptr);
433 offmap = map_to_offmap(reg->map_ptr);
H A Doffload.c458 map_id_full = be64_to_cpu(cbe->map_ptr);
/linux-master/kernel/bpf/
H A Darraymap.c211 const int map_ptr = BPF_REG_1; local
217 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value));
231 *insn++ = BPF_ALU64_REG(BPF_ADD, ret, map_ptr);
1378 const int map_ptr = BPF_REG_1; local
1381 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value));
1393 *insn++ = BPF_ALU64_REG(BPF_ADD, ret, map_ptr);
H A Dverifier.c136 * Now verifier knows that this map has key of R1->map_ptr->key_size bytes
222 aux->map_ptr_state.map_ptr = map;
267 struct bpf_map *map_ptr; member in struct:bpf_call_arg_meta
415 rec = reg->map_ptr->record;
1776 /* Clear off and union(map_ptr, range) */
1842 const struct bpf_map *map = reg->map_ptr;
1846 reg->map_ptr = map->inner_map_meta;
2301 * Clear type, off, and union(map_ptr, range) and
5065 struct bpf_map *map = regs[regno].map_ptr;
5431 struct bpf_map *map = reg->map_ptr;
7649 struct bpf_map *map_ptr = reg->map_ptr; local
9764 struct bpf_map *map_ptr = caller->regs[BPF_REG_1].map_ptr; local
19302 struct bpf_map *map_ptr; local
19806 struct bpf_map *map_ptr; local
[all...]
H A Dlog.c447 [CONST_PTR_TO_MAP] = "map_ptr",
717 if (reg->map_ptr->name[0])
718 verbose_a("map=%s", reg->map_ptr->name);
720 reg->map_ptr->key_size,
721 reg->map_ptr->value_size);
/linux-master/include/linux/
H A Dbpf_verifier.h55 /* This can either be reg->map_ptr or reg->btf. If ptr is NULL,
86 struct bpf_map *map_ptr; member in struct:bpf_reg_state::__anon2101::__anon2102
509 struct bpf_map *map_ptr; member in struct:bpf_map_ptr_state

Completed in 519 milliseconds