/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | mmap.c | 19 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() local 81 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 135 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap() 140 err = munmap(map_mmaped, map_sz); in test_mmap() 146 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); 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() 165 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 168 err = munmap(p, map_sz); in test_mmap() 180 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() [all …]
|
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-6.6.21/drivers/hte/ |
D | hte-tegra194.c | 121 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 423 map_sz = gs->prov_data->map_sz; in tegra_hte_line_xlate() 427 map_sz = gs->prov_data->sec_map_sz; in tegra_hte_line_xlate() [all …]
|
/linux-6.6.21/drivers/pci/ |
D | of_property.c | 189 u32 i, addr_sz[OF_PCI_MAX_INT_PIN] = { 0 }, map_sz = 0; in of_pci_prop_intr_map() local 229 map_sz += 5 + addr_sz[i] + out_irq[i].args_count; in of_pci_prop_intr_map() 237 if (!map_sz) in of_pci_prop_intr_map() 240 int_map = kcalloc(map_sz, sizeof(u32), GFP_KERNEL); in of_pci_prop_intr_map() 271 map_sz); in of_pci_prop_intr_map()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | gen.c | 459 size_t map_sz; in bpf_map_mmap_sz() local 461 map_sz = (size_t)roundup(bpf_map__value_size(map), 8) * bpf_map__max_entries(map); in bpf_map_mmap_sz() 462 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz() 463 return map_sz; in bpf_map_mmap_sz()
|
/linux-6.6.21/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 1545 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-6.6.21/drivers/input/touchscreen/ |
D | cyttsp4_core.h | 260 size_t map_sz; member
|
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-6.6.21/tools/lib/bpf/ |
D | libbpf.c | 1515 size_t map_sz; in bpf_map_mmap_sz() local 1517 map_sz = (size_t)roundup(value_sz, 8) * max_entries; in bpf_map_mmap_sz() 1518 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz() 1519 return map_sz; in bpf_map_mmap_sz() 2039 size_t map_sz; in bpf_object__init_kconfig_map() local 2051 map_sz = last_ext->kcfg.data_off + last_ext->kcfg.sz; in bpf_object__init_kconfig_map() 2054 NULL, map_sz); in bpf_object__init_kconfig_map()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | tg3.c | 6639 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free() argument 6641 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() 6647 dma_unmap_single(&tp->pdev->dev, dma_unmap_addr(ri, mapping), map_sz, in tg3_rx_data_free()
|