Searched refs:map_sz (Results 1 – 8 of 8) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | mmap.c | 19 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() local 135 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap() 140 err = munmap(map_mmaped, map_sz); in test_mmap() 152 err = mprotect(map_mmaped, map_sz, PROT_WRITE); in test_mmap() 155 err = mprotect(map_mmaped, map_sz, PROT_EXEC); in test_mmap() 168 err = munmap(p, map_sz); in test_mmap() 183 munmap(tmp1, map_sz); in test_mmap() 268 CHECK_FAIL(munmap(map_mmaped, map_sz)); in test_mmap() 274 munmap(tmp1, map_sz); in test_mmap() 280 munmap(tmp1, map_sz); in test_mmap() [all …]
|
A D | map_init.c | 38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup() argument 52 err = bpf_map__set_max_entries(skel->maps.hashmap1, map_sz); in setup()
|
/linux/tools/bpf/bpftool/ |
A D | gen.c | 357 size_t map_sz; in bpf_map_mmap_sz() local 359 map_sz = (size_t)roundup(bpf_map__value_size(map), 8) * bpf_map__max_entries(map); in bpf_map_mmap_sz() 360 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz() 361 return map_sz; in bpf_map_mmap_sz()
|
/linux/drivers/firmware/efi/libstub/ |
A D | x86-stub.c | 627 unsigned long map_sz, key, desc_size, buff_size; in exit_boot() local 637 map.map_size = &map_sz; in exit_boot()
|
/linux/drivers/input/touchscreen/ |
A D | cyttsp4_core.h | 260 size_t map_sz; member
|
A D | cyttsp4_core.c | 181 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets() 183 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets() 519 si->si_ofs.mdata_size = si->si_ofs.map_sz - si->si_ofs.mdata_ofs; in cyttsp4_si_get_mdata() 655 si->si_ofs.map_sz); in cyttsp4_si_put_log_data()
|
/linux/tools/lib/bpf/ |
A D | libbpf.c | 1436 size_t map_sz; in bpf_map_mmap_sz() local 1438 map_sz = (size_t)roundup(map->def.value_size, 8) * map->def.max_entries; in bpf_map_mmap_sz() 1439 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz() 1440 return map_sz; in bpf_map_mmap_sz() 1876 size_t map_sz; in bpf_object__init_kconfig_map() local 1888 map_sz = last_ext->kcfg.data_off + last_ext->kcfg.sz; in bpf_object__init_kconfig_map() 1891 NULL, map_sz); in bpf_object__init_kconfig_map()
|
/linux/drivers/net/ethernet/broadcom/ |
A D | tg3.c | 6638 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free() argument 6640 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() 6646 dma_unmap_single(&tp->pdev->dev, dma_unmap_addr(ri, mapping), map_sz, in tg3_rx_data_free()
|
Completed in 59 milliseconds