Home
last modified time | relevance | path

Searched refs:mapsize (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/mm/
Dbootmem_info.c45 unsigned long mapsize, section_nr, i; in register_page_bootmem_info_section() local
61 mapsize = sizeof(struct page) * PAGES_PER_SECTION; in register_page_bootmem_info_section()
62 mapsize = PAGE_ALIGN(mapsize) >> PAGE_SHIFT; in register_page_bootmem_info_section()
65 for (i = 0; i < mapsize; i++, page++) in register_page_bootmem_info_section()
71 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section()
73 for (i = 0; i < mapsize; i++, page++) in register_page_bootmem_info_section()
80 unsigned long mapsize, section_nr, i; in register_page_bootmem_info_section() local
95 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section()
97 for (i = 0; i < mapsize; i++, page++) in register_page_bootmem_info_section()
/linux-6.1.9/drivers/irqchip/
Dirq-ls-extirq.c129 u32 mapsize; in ls_extirq_parse_map() local
132 map = of_get_property(node, "interrupt-map", &mapsize); in ls_extirq_parse_map()
135 if (mapsize % sizeof(*map)) in ls_extirq_parse_map()
137 mapsize /= sizeof(*map); in ls_extirq_parse_map()
139 while (mapsize) { in ls_extirq_parse_map()
143 if (mapsize < 3) in ls_extirq_parse_map()
152 mapsize -= 3; in ls_extirq_parse_map()
160 if (intsize > mapsize) in ls_extirq_parse_map()
166 mapsize -= intsize; in ls_extirq_parse_map()
/linux-6.1.9/drivers/firmware/efi/
Driscv-runtime.c68 u64 mapsize; in riscv_enable_runtime_services() local
77 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in riscv_enable_runtime_services()
79 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in riscv_enable_runtime_services()
Darm-runtime.c90 u64 mapsize; in arm_enable_runtime_services() local
99 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in arm_enable_runtime_services()
101 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in arm_enable_runtime_services()
/linux-6.1.9/fs/xfs/scrub/
Dattr.c192 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map() local
195 if (start >= mapsize) in xchk_xattr_set_map()
197 if (start + len > mapsize) { in xchk_xattr_set_map()
198 len = mapsize - start; in xchk_xattr_set_map()
202 if (find_next_bit(map, mapsize, start) < start + len) in xchk_xattr_set_map()
221 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap() local
225 bitmap_zero(freemap, mapsize); in xchk_xattr_check_freemap()
234 return bitmap_and(dstmap, freemap, map, mapsize) == 0; in xchk_xattr_check_freemap()
/linux-6.1.9/drivers/spi/
Dspi-ppc4xx.c116 u64 mapsize; member
408 hw->mapsize = resource_size(&resource); in spi_ppc4xx_of_probe()
411 if (hw->mapsize < sizeof(struct spi_ppc4xx_regs)) { in spi_ppc4xx_of_probe()
426 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe()
457 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe()
473 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()
/linux-6.1.9/drivers/char/ipmi/
Dipmi_si_mem_io.c79 int mapsize, idx; in ipmi_si_mem_setup() local
135 mapsize = ((io->io_size * io->regspacing) in ipmi_si_mem_setup()
137 io->addr = ioremap(addr, mapsize); in ipmi_si_mem_setup()
/linux-6.1.9/tools/virtio/
Dvringh_test.c142 int fd, mapsize, to_guest[2], to_host[2]; in parallel_test() local
154 mapsize = vring_size(RINGSIZE, ALIGN) in parallel_test()
157 mapsize = (mapsize + getpagesize() - 1) & ~(getpagesize() - 1); in parallel_test()
158 ftruncate(fd, mapsize); in parallel_test()
161 host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test()
162 guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test()
178 munmap(guest_map, mapsize); in parallel_test()
181 __user_addr_max = __user_addr_min + mapsize; in parallel_test()
304 munmap(host_map, mapsize); in parallel_test()
/linux-6.1.9/fs/reiserfs/
Dprocfs.c274 unsigned int mapsize = le16_to_cpu(rs->s_v1.s_oid_cursize); in show_oidmap() local
278 for (i = 0; i < mapsize; ++i) { in show_oidmap()
281 right = (i == mapsize - 1) ? MAX_KEY_OBJECTID : MAP(i + 1); in show_oidmap()
295 mapsize, in show_oidmap()
296 mapsize, le16_to_cpu(rs->s_v1.s_oid_maxsize), total_used); in show_oidmap()
/linux-6.1.9/drivers/tty/serial/8250/
D8250_of.c83 port->mapsize = resource_size(&resource); in of_platform_serial_setup()
87 if (prop >= port->mapsize) { in of_platform_serial_setup()
89 prop, &port->mapsize); in of_platform_serial_setup()
95 port->mapsize -= prop; in of_platform_serial_setup()
D8250_fsl.c129 port8250.port.mapsize = resource_size(regs); in fsl8250_acpi_probe()
134 port8250.port.mapsize); in fsl8250_acpi_probe()
D8250_tegra.c88 port->mapsize = resource_size(res); in tegra_uart_probe()
D8250_bcm2835aux.c152 up.port.mapsize = resource_size(res) - offset; in bcm2835aux_serial_probe()
D8250_core.c731 p->mapsize = port->mapsize; in early_serial_setup()
1009 uart->port.mapsize = up->port.mapsize; in serial8250_register_8250_port()
D8250_uniphier.c212 up.port.mapsize = resource_size(regs); in uniphier_uart_probe()
D8250_aspeed_vuart.c438 port.port.mapsize = resource_size(res); in aspeed_vuart_probe()
D8250_port.c2947 if (pt->port.mapsize) in serial8250_port_size()
2948 return pt->port.mapsize; in serial8250_port_size()
/linux-6.1.9/drivers/video/fbdev/sis/
Dsis_main.c4176 unsigned int *mapsize, unsigned int min) in sisfb_post_map_vram() argument
4178 if (*mapsize < (min << 20)) in sisfb_post_map_vram()
4181 ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize)); in sisfb_post_map_vram()
4186 (*mapsize) >>= 1; in sisfb_post_map_vram()
4187 while((!(ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize))))) { in sisfb_post_map_vram()
4188 (*mapsize) >>= 1; in sisfb_post_map_vram()
4189 if((*mapsize) < (min << 20)) in sisfb_post_map_vram()
4195 (int)((*mapsize) >> 20)); in sisfb_post_map_vram()
4268 int PseudoAdrPinCount, unsigned int mapsize) in sisfb_post_300_rwtest() argument
4311 if ((BankNumHigh + PhysicalAdrHigh >= mapsize) || in sisfb_post_300_rwtest()
[all …]
/linux-6.1.9/arch/parisc/include/asm/
Dgrfioctl.h68 unsigned int mapsize; /* mapped size of framebuffer */ member
/linux-6.1.9/drivers/tty/serial/
Dmeson_uart.c425 devm_release_mem_region(port->dev, port->mapbase, port->mapsize); in meson_uart_release_port()
430 if (!devm_request_mem_region(port->dev, port->mapbase, port->mapsize, in meson_uart_request_port()
437 port->mapsize); in meson_uart_request_port()
744 port->mapsize = resource_size(res_mem); in meson_uart_probe()
Dmps2-uart.c566 mps_port->port.mapsize = resource_size(res); in mps2_init_port()
/linux-6.1.9/drivers/nvdimm/
Dbtt.c412 size_t mapsize = arena->logoff - arena->mapoff; in btt_map_init() local
426 while (mapsize) { in btt_map_init()
427 size_t size = min(mapsize, chunk_size); in btt_map_init()
437 mapsize -= size; in btt_map_init()
749 u64 logsize, mapsize, datasize; in alloc_arena() local
786 mapsize = roundup((arena->external_nlba * MAP_ENT_SIZE), BTT_PG_SIZE); in alloc_arena()
787 datasize = available - mapsize; in alloc_arena()
793 arena->logoff = arena->mapoff + mapsize; in alloc_arena()
/linux-6.1.9/drivers/net/ethernet/alteon/
Dacenic.c1928 int bd_flags, desc_type, mapsize; in ace_rx_int() local
1951 mapsize = ACE_STD_BUFSIZE; in ace_rx_int()
1956 mapsize = ACE_JUMBO_BUFSIZE; in ace_rx_int()
1961 mapsize = ACE_MINI_BUFSIZE; in ace_rx_int()
1974 mapsize, DMA_FROM_DEVICE); in ace_rx_int()
/linux-6.1.9/include/linux/
Dserial_core.h565 resource_size_t mapsize; member
/linux-6.1.9/net/core/
Dflow_dissector.c267 size_t mapsize, bool post_ct, u16 zone) in skb_flow_dissect_ct() argument
293 if (ctinfo < mapsize) in skb_flow_dissect_ct()

12