Searched refs:MAP_SIZE (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
| D | queue_stack_map.c | 11 const int MAP_SIZE = 32; in test_queue_stack_map_by_type() local 12 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() 19 for (i = 0; i < MAP_SIZE; i++) in test_queue_stack_map_by_type() 42 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 51 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 56 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 57 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 81 for (i = 0; i < MAP_SIZE; i++) { in test_queue_stack_map_by_type() 87 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_maps.c | 528 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 …]
|
| /Linux-v5.4/tools/testing/selftests/vm/ |
| D | compaction_test.c | 21 #define MAP_SIZE 1048576 macro 196 map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in main() 203 munmap(map, MAP_SIZE); in main() 213 for (i = 0; i < MAP_SIZE; i += page_size) in main() 220 munmap(entry->map, MAP_SIZE); in main()
|
| /Linux-v5.4/drivers/tty/serial/ |
| D | samsung.c | 1435 #define MAP_SIZE (0x100) macro 1439 release_mem_region(port->mapbase, MAP_SIZE); in s3c24xx_serial_release_port() 1445 return request_mem_region(port->mapbase, MAP_SIZE, name) ? 0 : -EBUSY; in s3c24xx_serial_request_port()
|