Searched refs:MAP_SIZE (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | queue_stack_map.c | 12 const int MAP_SIZE = 32; in test_queue_stack_map_by_type() local 13 __u32 vals[MAP_SIZE], val; in test_queue_stack_map_by_type() 27 for (i = 0; i < MAP_SIZE; i++) in test_queue_stack_map_by_type() 50 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 59 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 64 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 94 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type()
|
/openbmc/linux/tools/testing/selftests/powerpc/stringloops/ |
H A D | memcmp.c | 19 #define MAP_SIZE (64 * 1024) macro 84 p = mmap(NULL, 4 * MAP_SIZE, PROT_READ | PROT_WRITE, in testcase() 89 s1 = p + MAP_SIZE - alloc_size; in testcase() 90 s2 = p + 3 * MAP_SIZE - alloc_size; in testcase() 93 munmap(p + MAP_SIZE, MAP_SIZE); in testcase() 94 munmap(p + 3 * MAP_SIZE, MAP_SIZE); in testcase()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/pxaregs/pxaregs-1.14/ |
H A D | munmap.patch | 11 - munmap(0,MAP_SIZE); 12 + munmap(map,MAP_SIZE); 20 - munmap(0,MAP_SIZE); 21 + munmap(map,MAP_SIZE);
|
H A D | pxaregs.c | 1768 #define MAP_SIZE 4096 macro 1769 #define MAP_MASK ( MAP_SIZE - 1 ) 1787 MAP_SIZE, in getmem() 1801 munmap(0,MAP_SIZE); in getmem() 1822 MAP_SIZE, in putmem() 1836 munmap(0,MAP_SIZE); in putmem()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 541 const int MAP_SIZE = 32; in test_queuemap() local 542 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap() 546 for (i = 0; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 550 fd = bpf_map_create(BPF_MAP_TYPE_QUEUE, NULL, 4, sizeof(val), MAP_SIZE, &map_opts); in test_queuemap() 553 fd = bpf_map_create(BPF_MAP_TYPE_QUEUE, NULL, 0, sizeof(val), MAP_SIZE, &map_opts); in test_queuemap() 565 for (i = 0; i < MAP_SIZE; i++) in test_queuemap() 576 for (i = MAP_SIZE; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 580 for (i = MAP_SIZE/2; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap() 597 const int MAP_SIZE = 32; in test_stackmap() local 598 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap() [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | compaction_test.c | 22 #define MAP_SIZE (MAP_SIZE_MB * 1024 * 1024) macro 205 map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in main() 212 munmap(map, MAP_SIZE); in main() 222 for (i = 0; i < MAP_SIZE; i += page_size) in main() 229 munmap(entry->map, MAP_SIZE); in main()
|