/linux-master/drivers/media/pci/mgb4/ |
H A D | mgb4_regs.c | 13 regs->mapsize = res->end - res->start; 15 if (!request_mem_region(regs->mapbase, regs->mapsize, res->name)) 17 regs->membase = ioremap(regs->mapbase, regs->mapsize); 19 release_mem_region(regs->mapbase, regs->mapsize); 29 release_mem_region(regs->mapbase, regs->mapsize);
|
H A D | mgb4_regs.h | 14 resource_size_t mapsize; member in struct:mgb4_regs
|
/linux-master/mm/ |
H A D | bootmem_info.c | 45 unsigned long mapsize, section_nr, i; local 61 mapsize = sizeof(struct page) * PAGES_PER_SECTION; 62 mapsize = PAGE_ALIGN(mapsize) >> PAGE_SHIFT; 65 for (i = 0; i < mapsize; i++, page++) 71 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; 73 for (i = 0; i < mapsize; i++, page++) 80 unsigned long mapsize, section_nr, i; local 95 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; 97 for (i = 0; i < mapsize; [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-ls-extirq.c | 129 u32 mapsize; local 132 map = of_get_property(node, "interrupt-map", &mapsize); 135 if (mapsize % sizeof(*map)) 137 mapsize /= sizeof(*map); 139 while (mapsize) { 143 if (mapsize < 3) 152 mapsize -= 3; 160 if (intsize > mapsize) 166 mapsize -= intsize;
|
/linux-master/drivers/char/ipmi/ |
H A D | ipmi_si_mem_io.c | 79 int mapsize, idx; local 135 mapsize = ((io->io_size * io->regspacing) 137 io->addr = ioremap(addr, mapsize);
|
/linux-master/drivers/firmware/efi/ |
H A D | riscv-runtime.c | 68 u64 mapsize; local 77 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; 79 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) {
|
H A D | arm-runtime.c | 90 u64 mapsize; local 99 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; 101 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) {
|
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_rt288x.c | 74 p->mapsize = 0x1000; 93 p->mapsize = 0x100;
|
H A D | 8250_fsl.c | 142 port8250.port.mapsize = resource_size(regs); 147 port8250.port.mapsize);
|
H A D | 8250_dfl.c | 118 uart.port.mapsize = resource_size(&dfl_dev->mmio_res);
|
H A D | 8250_tegra.c | 75 port->mapsize = resource_size(res);
|
H A D | 8250_core.c | 761 p->mapsize = port->mapsize; 854 uart.port.mapsize = p->mapsize; 1055 uart->port.mapsize = up->port.mapsize;
|
H A D | 8250_uniphier.c | 200 up.port.mapsize = resource_size(regs);
|
H A D | 8250_bcm2835aux.c | 124 up.port.mapsize = resource_size(res);
|
H A D | 8250_dw.c | 524 p->mapsize = resource_size(regs); 526 p->membase = devm_ioremap(dev, p->mapbase, p->mapsize);
|
H A D | 8250_of.c | 95 port->mapsize = resource_size(&resource);
|
/linux-master/drivers/spi/ |
H A D | spi-ppc4xx.c | 118 u64 mapsize; member in struct:ppc4xx_spi 405 hw->mapsize = resource_size(&resource); 408 if (hw->mapsize < sizeof(struct spi_ppc4xx_regs)) { 423 if (!request_mem_region(hw->mapbase, hw->mapsize, DRIVER_NAME)) { 454 release_mem_region(hw->mapbase, hw->mapsize); 470 release_mem_region(hw->mapbase, hw->mapsize);
|
/linux-master/fs/xfs/scrub/ |
H A D | attr.c | 256 unsigned int mapsize = sc->mp->m_attr_geo->blksize; local 259 if (start >= mapsize) 261 if (start + len > mapsize) { 262 len = mapsize - start; 266 if (find_next_bit(map, mapsize, start) < start + len) 283 unsigned int mapsize = sc->mp->m_attr_geo->blksize; local 287 bitmap_zero(ab->freemap, mapsize); 296 return !bitmap_intersects(ab->freemap, ab->usedmap, mapsize);
|
/linux-master/drivers/tty/serial/ |
H A D | serial_port.c | 169 * ->mapsize 175 * If no error happened, the ->irq, ->mapbase, ->mapsize will be altered. 186 * - reg-offset (->mapsize against ->mapbase) 237 if (!use_defaults && port->mapsize < value) { 238 dev_err(dev, "reg-offset %u exceeds region size %pa\n", value, &port->mapsize); 243 port->mapsize -= value;
|
H A D | meson_uart.c | 429 devm_release_mem_region(port->dev, port->mapbase, port->mapsize); 434 if (!devm_request_mem_region(port->dev, port->mapbase, port->mapsize, 441 port->mapsize); 762 port->mapsize = resource_size(res_mem);
|
/linux-master/fs/reiserfs/ |
H A D | procfs.c | 274 unsigned int mapsize = le16_to_cpu(rs->s_v1.s_oid_cursize); local 278 for (i = 0; i < mapsize; ++i) { 281 right = (i == mapsize - 1) ? MAX_KEY_OBJECTID : MAP(i + 1); 295 mapsize, 296 mapsize, le16_to_cpu(rs->s_v1.s_oid_maxsize), total_used);
|
/linux-master/tools/virtio/ |
H A D | vringh_test.c | 142 int fd, mapsize, to_guest[2], to_host[2]; local 154 mapsize = vring_size(RINGSIZE, ALIGN) 157 mapsize = (mapsize + getpagesize() - 1) & ~(getpagesize() - 1); 158 ftruncate(fd, mapsize); 161 host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); 162 guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); 178 munmap(guest_map, mapsize); 181 __user_addr_max = __user_addr_min + mapsize; 304 munmap(host_map, mapsize); [all...] |
/linux-master/include/linux/ |
H A D | serial_8250.h | 20 * @mapsize: Port size for ioremap() 37 resource_size_t mapsize; member in struct:plat_serial8250_port
|
/linux-master/drivers/video/fbdev/sis/ |
H A D | sis_main.c | 4149 unsigned int *mapsize, unsigned int min) 4151 if (*mapsize < (min << 20)) 4154 ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize)); 4159 (*mapsize) >>= 1; 4160 while((!(ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize))))) { 4161 (*mapsize) >>= 1; 4162 if((*mapsize) < (min << 20)) 4168 (int)((*mapsize) >> 20)); 4241 int PseudoAdrPinCount, unsigned int mapsize) 4284 if ((BankNumHigh + PhysicalAdrHigh >= mapsize) || 4148 sisfb_post_map_vram(struct sis_video_info *ivideo, unsigned int *mapsize, unsigned int min) argument 4239 sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, int buswidth, int PseudoRankCapacity, int PseudoAdrPinCount, unsigned int mapsize) argument 4308 sisfb_post_300_ramsize(struct pci_dev *pdev, unsigned int mapsize) argument 4339 unsigned int mapsize; local 4586 sisfb_post_xgi_rwtest(struct sis_video_info *ivideo, int starta, unsigned int enda, unsigned int mapsize) argument 4619 unsigned int buswidth, ranksize, channelab, mapsize; local [all...] |
/linux-master/drivers/nvdimm/ |
H A D | btt.c | 413 size_t mapsize = arena->logoff - arena->mapoff; local 427 while (mapsize) { 428 size_t size = min(mapsize, chunk_size); 438 mapsize -= size; 750 u64 logsize, mapsize, datasize; local 787 mapsize = roundup((arena->external_nlba * MAP_ENT_SIZE), BTT_PG_SIZE); 788 datasize = available - mapsize; 794 arena->logoff = arena->mapoff + mapsize;
|