Home
last modified time | relevance | path

Searched refs:MAP_SIZE (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c12 const int MAP_SIZE = 32; in test_queue_stack_map_by_type() local
13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type()
20 for (i = 0; i < MAP_SIZE; i++) in test_queue_stack_map_by_type()
43 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type()
52 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type()
57 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type()
58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
82 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type()
88 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c19 #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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_maps.c528 const int MAP_SIZE = 32; in test_queuemap() local
529 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_queuemap()
533 for (i = 0; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
537 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 4, sizeof(val), MAP_SIZE, in test_queuemap()
541 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 0, sizeof(val), MAP_SIZE, in test_queuemap()
554 for (i = 0; i < MAP_SIZE; i++) in test_queuemap()
565 for (i = MAP_SIZE; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
569 for (i = MAP_SIZE/2; i < MAP_SIZE + MAP_SIZE/2; i++) in test_queuemap()
586 const int MAP_SIZE = 32; in test_stackmap() local
587 __u32 vals[MAP_SIZE + MAP_SIZE/2], val; in test_stackmap()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dcompaction_test.c22 #define MAP_SIZE (MAP_SIZE_MB * 1024 * 1024) macro
197 map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in main()
204 munmap(map, MAP_SIZE); in main()
214 for (i = 0; i < MAP_SIZE; i += page_size) in main()
221 munmap(entry->map, MAP_SIZE); in main()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dsamsung_tty.c1548 #define MAP_SIZE (0x100) macro
1552 release_mem_region(port->mapbase, MAP_SIZE); in s3c24xx_serial_release_port()
1559 return request_mem_region(port->mapbase, MAP_SIZE, name) ? 0 : -EBUSY; in s3c24xx_serial_request_port()