Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 25 of 56) sorted by relevance

123

/linux-2.6.39/drivers/video/
Dsbuslib.c46 unsigned int size, page, r, map_size; in sbusfb_mmap_helper() local
67 map_size = 0; in sbusfb_mmap_helper()
70 map_size = sbusfb_mmapsize(map[i].size, fbsize); in sbusfb_mmap_helper()
79 if (!map_size){ in sbusfb_mmap_helper()
83 if (page + map_size > size) in sbusfb_mmap_helper()
84 map_size = size - page; in sbusfb_mmap_helper()
89 map_size, in sbusfb_mmap_helper()
93 page += map_size; in sbusfb_mmap_helper()
Digafb.c225 unsigned int size, page, map_size = 0; in igafb_mmap() local
236 map_size = 0; in igafb_mmap()
247 map_size = par->mmap_map[i].size - (offset - start); in igafb_mmap()
251 if (!map_size) { in igafb_mmap()
255 if (page + map_size > size) in igafb_mmap()
256 map_size = size - page; in igafb_mmap()
262 map_offset >> PAGE_SHIFT, map_size, vma->vm_page_prot)) in igafb_mmap()
265 page += map_size; in igafb_mmap()
268 if (!map_size) in igafb_mmap()
Ds3c2410fb.c639 unsigned map_size = PAGE_ALIGN(info->fix.smem_len); in s3c2410fb_map_video_memory() local
641 dprintk("map_video_memory(fbi=%p) map_size %u\n", fbi, map_size); in s3c2410fb_map_video_memory()
643 info->screen_base = dma_alloc_writecombine(fbi->dev, map_size, in s3c2410fb_map_video_memory()
649 info->screen_base, map_size); in s3c2410fb_map_video_memory()
650 memset(info->screen_base, 0x00, map_size); in s3c2410fb_map_video_memory()
655 info->fix.smem_start, info->screen_base, map_size); in s3c2410fb_map_video_memory()
Dsa1100fb.h80 u_int map_size; member
Dnuc900fb.c395 unsigned long map_size = PAGE_ALIGN(info->fix.smem_len); in nuc900fb_map_video_memory() local
398 fbi, map_size); in nuc900fb_map_video_memory()
400 info->screen_base = dma_alloc_writecombine(fbi->dev, map_size, in nuc900fb_map_video_memory()
406 memset(info->screen_base, 0x00, map_size); in nuc900fb_map_video_memory()
Dimxfb.c162 u_int map_size; member
803 fbi->map_size = PAGE_ALIGN(info->fix.smem_len); in imxfb_probe()
805 fbi->map_size, &fbi->map_dma, GFP_KERNEL); in imxfb_probe()
872 dma_free_writecombine(&pdev->dev,fbi->map_size,fbi->map_cpu, in imxfb_probe()
/linux-2.6.39/drivers/input/
Dsparse-keymap.c173 size_t map_size = 1; /* to account for the last KE_END entry */ in sparse_keymap_setup() local
180 map_size++; in sparse_keymap_setup()
182 map = kcalloc(map_size, sizeof (struct key_entry), GFP_KERNEL); in sparse_keymap_setup()
186 memcpy(map, keymap, map_size * sizeof (struct key_entry)); in sparse_keymap_setup()
188 for (i = 0; i < map_size; i++) { in sparse_keymap_setup()
218 dev->keycodemax = map_size; in sparse_keymap_setup()
/linux-2.6.39/drivers/char/tpm/
Dtpm_infineon.c44 unsigned long map_size; /* MMIO region size */ member
467 tpm_dev.map_size = pnp_mem_len(dev, 0); in tpm_inf_pnp_probe()
473 if (request_mem_region(tpm_dev.map_base, tpm_dev.map_size, in tpm_inf_pnp_probe()
479 tpm_dev.mem_base = ioremap(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
481 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
590 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
608 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_remove()
/linux-2.6.39/arch/x86/kernel/
Dtboot.c162 u32 map_base, map_size; in tboot_create_trampoline() local
166 map_size = PFN_UP(tboot->tboot_size); in tboot_create_trampoline()
167 if (map_tboot_pages(map_base << PAGE_SHIFT, map_base, map_size)) in tboot_create_trampoline()
169 map_base, map_size); in tboot_create_trampoline()
/linux-2.6.39/arch/microblaze/mm/
Dinit.c73 unsigned long map_size; in setup_memory() local
137 map_size = init_bootmem_node(NODE_DATA(0), in setup_memory()
139 memblock_reserve(PFN_UP(TOPHYS((u32)klimit)) << PAGE_SHIFT, map_size); in setup_memory()
/linux-2.6.39/arch/ia64/mm/
Dcontig.c328 unsigned long map_size; in paging_init() local
332 map_size = PAGE_ALIGN(ALIGN(max_low_pfn, MAX_ORDER_NR_PAGES) * in paging_init()
334 VMALLOC_END -= map_size; in paging_init()
/linux-2.6.39/drivers/pcmcia/
Dcistpl.c94 mem->res = pcmcia_find_mem_region(0, s->map_size, in set_cis_map()
95 s->map_size, 0, s); in set_cis_map()
105 s->cis_virt = ioremap(mem->res->start, s->map_size); in set_cis_map()
120 s->cis_virt = ioremap(mem->static_start, s->map_size); in set_cis_map()
182 card_offset = addr & ~(s->map_size-1); in pcmcia_read_cis_mem()
190 end = sys + s->map_size; in pcmcia_read_cis_mem()
191 sys = sys + (addr & (s->map_size-1)); in pcmcia_read_cis_mem()
197 card_offset += s->map_size; in pcmcia_read_cis_mem()
256 card_offset = addr & ~(s->map_size-1); in pcmcia_write_cis_mem()
264 end = sys + s->map_size; in pcmcia_write_cis_mem()
[all …]
Drsrc_nonstatic.c279 s->cis_virt = ioremap(res->start, s->map_size); in readable()
306 virt = ioremap(res->start, s->map_size); in checksum()
316 for (i = 0; i < s->map_size; i += 44) { in checksum()
424 if (step < 2 * s->map_size) in do_mem_probe()
425 step = 2 * s->map_size; in do_mem_probe()
/linux-2.6.39/arch/arm/plat-samsung/include/plat/
Ddma-s3c24xx.h42 unsigned long map_size; member
/linux-2.6.39/fs/
Dbinfmt_aout.c266 unsigned long text_addr, map_size; in load_aout_binary() local
273 map_size = ex.a_text+ex.a_data + PAGE_SIZE - 1; in load_aout_binary()
276 map_size = ex.a_text+ex.a_data; in load_aout_binary()
279 error = do_brk(text_addr & PAGE_MASK, map_size); in load_aout_binary()
/linux-2.6.39/drivers/pci/
Ddmar.c735 int map_size; in alloc_iommu() local
788 map_size = max_t(int, ecap_max_iotlb_offset(iommu->ecap), in alloc_iommu()
790 map_size = VTD_PAGE_ALIGN(map_size); in alloc_iommu()
791 if (map_size > VTD_PAGE_SIZE) { in alloc_iommu()
793 iommu->reg = ioremap(drhd->reg_base_addr, map_size); in alloc_iommu()
/linux-2.6.39/drivers/net/
Dpasemi_mac.c1392 const unsigned int *map_size, in pasemi_mac_queue_csdesc() argument
1433 CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); in pasemi_mac_queue_csdesc()
1435 CS_DESC(csring, fill+i) = XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); in pasemi_mac_queue_csdesc()
1485 unsigned int map_size[MAX_SKB_FRAGS+1]; in pasemi_mac_start_tx() local
1500 map_size[0] = skb_headlen(skb); in pasemi_mac_start_tx()
1510 map_size[i+1] = frag->size; in pasemi_mac_start_tx()
1553 pasemi_mac_queue_csdesc(skb, map, map_size, txring, csring); in pasemi_mac_start_tx()
1563 XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); in pasemi_mac_start_tx()
1589 pci_unmap_single(mac->dma_pdev, map[nfrags], map_size[nfrags], in pasemi_mac_start_tx()
/linux-2.6.39/arch/x86/xen/
Dsetup.c147 ssize_t map_size) in xen_set_identity() argument
155 for (i = 0, entry = list; i < map_size; i++, entry++) { in xen_set_identity()
/linux-2.6.39/drivers/char/agp/
Di460-agp.c369 size_t map_size; in i460_alloc_large_page() local
377 map_size = ((I460_KPAGES_PER_IOPAGE + BITS_PER_LONG - 1) & -BITS_PER_LONG)/8; in i460_alloc_large_page()
378 lp->alloced_map = kzalloc(map_size, GFP_KERNEL); in i460_alloc_large_page()
/linux-2.6.39/arch/arm/plat-omap/
Ddmtimer.c743 int i, map_size = SZ_8K; /* Module 4KB + L4 4KB except on omap1 */ in omap_dm_timer_init() local
753 map_size = SZ_2K; in omap_dm_timer_init()
782 timer->io_base = ioremap(timer->phys_base, map_size); in omap_dm_timer_init()
/linux-2.6.39/arch/arm/mach-s3c2410/
Ddma.c128 .map_size = ARRAY_SIZE(s3c2410_dma_mappings),
/linux-2.6.39/arch/x86/ia32/
Dia32_aout.c322 unsigned long text_addr, map_size; in load_aout_binary() local
328 map_size = ex.a_text+ex.a_data; in load_aout_binary()
331 error = do_brk(text_addr & PAGE_MASK, map_size); in load_aout_binary()
/linux-2.6.39/include/pcmcia/
Dss.h158 u_int map_size; member
/linux-2.6.39/arch/arm/mach-s3c2443/
Ddma.c162 .map_size = ARRAY_SIZE(s3c2443_dma_mappings),
/linux-2.6.39/fs/xfs/
Dxfs_buf_item.c690 int map_size; in xfs_buf_item_init() local
713 map_size = (int)((chunks + NBWORD) >> BIT_TO_WORD_SHIFT); in xfs_buf_item_init()
723 bip->bli_format.blf_map_size = map_size; in xfs_buf_item_init()

123