Home
last modified time | relevance | path

Searched refs:map_sz (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
A Dmmap.c19 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 Dmap_init.c38 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/drivers/hte/
A Dhte-tegra194.c121 u32 map_sz; member
321 .map_sz = ARRAY_SIZE(tegra194_aon_gpio_map),
330 .map_sz = ARRAY_SIZE(tegra234_aon_gpio_map),
339 .map_sz = 0,
346 .map_sz = 0,
365 u32 map_sz, u32 *mapped) in tegra_hte_map_to_line_id() argument
369 if (eid >= map_sz) in tegra_hte_map_to_line_id()
390 u32 map_sz = 0; in tegra_hte_line_xlate() local
426 map_sz = gs->prov_data->map_sz; in tegra_hte_line_xlate()
430 map_sz = gs->prov_data->sec_map_sz; in tegra_hte_line_xlate()
[all …]
/linux/drivers/pci/
A Dof_property.c209 u32 i, addr_sz[OF_PCI_MAX_INT_PIN] = { 0 }, map_sz = 0; in of_pci_prop_intr_map() local
249 map_sz += 5 + addr_sz[i] + out_irq[i].args_count; in of_pci_prop_intr_map()
257 if (!map_sz) in of_pci_prop_intr_map()
260 int_map = kcalloc(map_sz, sizeof(u32), GFP_KERNEL); in of_pci_prop_intr_map()
293 map_sz); in of_pci_prop_intr_map()
/linux/tools/bpf/bpftool/
A Dgen.c489 size_t map_sz; in bpf_map_mmap_sz() local
491 map_sz = (size_t)roundup(bpf_map__value_size(map), 8) * bpf_map__max_entries(map); in bpf_map_mmap_sz()
492 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
493 return map_sz; in bpf_map_mmap_sz()
855 size_t i, map_sz; in codegen_maps_skeleton() local
866 map_sz = offsetof(struct bpf_map_skeleton, link); in codegen_maps_skeleton()
870 map_sz = sizeof(struct bpf_map_skeleton); in codegen_maps_skeleton()
889 map_cnt, map_sz, map_sz, map_sz in codegen_maps_skeleton()
/linux/drivers/scsi/qla2xxx/
A Dtcm_qla2xxx.c1545 size_t map_sz; in tcm_qla2xxx_init_lport() local
1553 map_sz = array_size(65536, sizeof(struct tcm_qla2xxx_fc_loopid)); in tcm_qla2xxx_init_lport()
1555 lport->lport_loopid_map = vzalloc(map_sz); in tcm_qla2xxx_init_lport()
1557 pr_err("Unable to allocate lport->lport_loopid_map of %zu bytes\n", map_sz); in tcm_qla2xxx_init_lport()
1561 pr_debug("qla2xxx: Allocated lport_loopid_map of %zu bytes\n", map_sz); in tcm_qla2xxx_init_lport()
/linux/tools/lib/bpf/
A Dlibbpf.c1760 size_t map_sz; in array_map_mmap_sz() local
1762 map_sz = (size_t)roundup(value_sz, 8) * max_entries; in array_map_mmap_sz()
1763 map_sz = roundup(map_sz, page_sz); in array_map_mmap_sz()
1764 return map_sz; in array_map_mmap_sz()
2312 size_t map_sz; in bpf_object__init_kconfig_map() local
2324 map_sz = last_ext->kcfg.data_off + last_ext->kcfg.sz; in bpf_object__init_kconfig_map()
2327 NULL, map_sz); in bpf_object__init_kconfig_map()
/linux/drivers/net/ethernet/broadcom/
A Dtg3.c6668 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free() argument
6670 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free()
6676 dma_unmap_single(&tp->pdev->dev, dma_unmap_addr(ri, mapping), map_sz, in tg3_rx_data_free()

Completed in 76 milliseconds