Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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.6.21/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.6.21/drivers/spi/
Dspi-ppc4xx.c116 u64 mapsize; member
403 hw->mapsize = resource_size(&resource); in spi_ppc4xx_of_probe()
406 if (hw->mapsize < sizeof(struct spi_ppc4xx_regs)) { in spi_ppc4xx_of_probe()
421 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { in spi_ppc4xx_of_probe()
452 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_probe()
468 release_mem_region(hw->mapbase, hw->mapsize); in spi_ppc4xx_of_remove()
/linux-6.6.21/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.6.21/fs/xfs/scrub/
Dattr.c256 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map() local
259 if (start >= mapsize) in xchk_xattr_set_map()
261 if (start + len > mapsize) { in xchk_xattr_set_map()
262 len = mapsize - start; in xchk_xattr_set_map()
266 if (find_next_bit(map, mapsize, start) < start + len) in xchk_xattr_set_map()
283 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap() local
287 bitmap_zero(ab->freemap, mapsize); in xchk_xattr_check_freemap()
296 return !bitmap_intersects(ab->freemap, ab->usedmap, mapsize); in xchk_xattr_check_freemap()
/linux-6.6.21/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.6.21/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.6.21/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_rt288x.c74 p->mapsize = 0x1000; in au_platform_setup()
93 p->mapsize = 0x100; in rt288x_setup()
D8250_fsl.c141 port8250.port.mapsize = resource_size(regs); in fsl8250_acpi_probe()
146 port8250.port.mapsize); in fsl8250_acpi_probe()
D8250_core.c761 p->mapsize = port->mapsize; in early_serial_setup()
854 uart.port.mapsize = p->mapsize; in serial8250_probe()
1056 uart->port.mapsize = up->port.mapsize; in serial8250_register_8250_port()
D8250_dfl.c118 uart.port.mapsize = resource_size(&dfl_dev->mmio_res); in dfl_uart_probe()
D8250_tegra.c89 port->mapsize = resource_size(res); in tegra_uart_probe()
D8250_bcm2835aux.c154 up.port.mapsize = resource_size(res) - offset; in bcm2835aux_serial_probe()
D8250_uniphier.c212 up.port.mapsize = resource_size(regs); in uniphier_uart_probe()
D8250_aspeed_vuart.c441 port.port.mapsize = resource_size(res); in aspeed_vuart_probe()
/linux-6.6.21/drivers/video/fbdev/sis/
Dsis_main.c4178 unsigned int *mapsize, unsigned int min) in sisfb_post_map_vram() argument
4180 if (*mapsize < (min << 20)) in sisfb_post_map_vram()
4183 ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize)); in sisfb_post_map_vram()
4188 (*mapsize) >>= 1; in sisfb_post_map_vram()
4189 while((!(ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize))))) { in sisfb_post_map_vram()
4190 (*mapsize) >>= 1; in sisfb_post_map_vram()
4191 if((*mapsize) < (min << 20)) in sisfb_post_map_vram()
4197 (int)((*mapsize) >> 20)); in sisfb_post_map_vram()
4270 int PseudoAdrPinCount, unsigned int mapsize) in sisfb_post_300_rwtest() argument
4313 if ((BankNumHigh + PhysicalAdrHigh >= mapsize) || in sisfb_post_300_rwtest()
[all …]
/linux-6.6.21/drivers/tty/serial/
Dmeson_uart.c429 devm_release_mem_region(port->dev, port->mapbase, port->mapsize); in meson_uart_release_port()
434 if (!devm_request_mem_region(port->dev, port->mapbase, port->mapsize, in meson_uart_request_port()
441 port->mapsize); in meson_uart_request_port()
768 port->mapsize = resource_size(res_mem); in meson_uart_probe()
Dmps2-uart.c546 mps_port->port.mapsize = resource_size(res); in mps2_init_port()
/linux-6.6.21/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.6.21/include/linux/
Dserial_8250.h37 resource_size_t mapsize; member
/linux-6.6.21/arch/mips/alchemy/common/
Dplatform.c54 .mapsize = 0x1000, \
/linux-6.6.21/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()

12