Searched refs:map_sz (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A 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 …]
|
| H 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/drivers/hte/ |
| H A 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 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/ |
| H A D | of_property.c | 213 u32 i, addr_sz[OF_PCI_MAX_INT_PIN] = { 0 }, map_sz = 0; in of_pci_prop_intr_map() local 253 map_sz += 5 + addr_sz[i] + out_irq[i].args_count; in of_pci_prop_intr_map() 261 if (!map_sz) in of_pci_prop_intr_map() 264 int_map = kcalloc(map_sz, sizeof(u32), GFP_KERNEL); in of_pci_prop_intr_map() 305 map_sz); in of_pci_prop_intr_map()
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | tcm_qla2xxx.c | 1562 size_t map_sz; in tcm_qla2xxx_init_lport() local 1570 map_sz = array_size(65536, sizeof(struct tcm_qla2xxx_fc_loopid)); in tcm_qla2xxx_init_lport() 1572 lport->lport_loopid_map = vzalloc(map_sz); in tcm_qla2xxx_init_lport() 1574 pr_err("Unable to allocate lport->lport_loopid_map of %zu bytes\n", map_sz); in tcm_qla2xxx_init_lport() 1578 pr_debug("qla2xxx: Allocated lport_loopid_map of %zu bytes\n", map_sz); in tcm_qla2xxx_init_lport()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 6666 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free() argument 6668 unsigned int skb_size = SKB_DATA_ALIGN(map_sz + TG3_RX_OFFSET(tp)) + in tg3_rx_data_free() 6674 dma_unmap_single(&tp->pdev->dev, dma_unmap_addr(ri, mapping), map_sz, in tg3_rx_data_free()
|