Home
last modified time | relevance | path

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

12

/drivers/video/
Dsbuslib.c46 unsigned int size, page, r, map_size; in sbusfb_mmap_helper() local
66 map_size = 0; in sbusfb_mmap_helper()
69 map_size = sbusfb_mmapsize(map[i].size, fbsize); in sbusfb_mmap_helper()
78 if (!map_size) { in sbusfb_mmap_helper()
82 if (page + map_size > size) in sbusfb_mmap_helper()
83 map_size = size - page; in sbusfb_mmap_helper()
88 map_size, in sbusfb_mmap_helper()
92 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.c644 unsigned map_size = PAGE_ALIGN(info->fix.smem_len); in s3c2410fb_map_video_memory() local
646 dprintk("map_video_memory(fbi=%p) map_size %u\n", fbi, map_size); in s3c2410fb_map_video_memory()
648 info->screen_base = dma_alloc_writecombine(fbi->dev, map_size, in s3c2410fb_map_video_memory()
654 info->screen_base, map_size); in s3c2410fb_map_video_memory()
655 memset(info->screen_base, 0x00, map_size); in s3c2410fb_map_video_memory()
660 info->fix.smem_start, info->screen_base, map_size); in s3c2410fb_map_video_memory()
Dsa1100fb.h43 u_int map_size; member
Dnuc900fb.c394 unsigned long map_size = PAGE_ALIGN(info->fix.smem_len); in nuc900fb_map_video_memory() local
397 fbi, map_size); in nuc900fb_map_video_memory()
399 info->screen_base = dma_alloc_writecombine(fbi->dev, map_size, in nuc900fb_map_video_memory()
405 memset(info->screen_base, 0x00, map_size); in nuc900fb_map_video_memory()
Dimxfb.c150 u_int map_size; member
847 fbi->map_size = PAGE_ALIGN(info->fix.smem_len); in imxfb_probe()
849 fbi->map_size, &fbi->map_dma, GFP_KERNEL); in imxfb_probe()
916 dma_free_writecombine(&pdev->dev,fbi->map_size,fbi->map_cpu, in imxfb_probe()
Dsa1100fb.c564 fbi->map_dma, fbi->map_size); in sa1100fb_mmap()
1089 fbi->map_size = PAGE_ALIGN(fbi->fb.fix.smem_len + PAGE_SIZE); in sa1100fb_map_video_memory()
1090 fbi->map_cpu = dma_alloc_writecombine(fbi->dev, fbi->map_size, in sa1100fb_map_video_memory()
/drivers/input/
Dsparse-keymap.c174 size_t map_size = 1; /* to account for the last KE_END entry */ in sparse_keymap_setup() local
181 map_size++; in sparse_keymap_setup()
183 map = kcalloc(map_size, sizeof(struct key_entry), GFP_KERNEL); in sparse_keymap_setup()
187 memcpy(map, keymap, map_size * sizeof(struct key_entry)); in sparse_keymap_setup()
189 for (i = 0; i < map_size; i++) { in sparse_keymap_setup()
219 dev->keycodemax = map_size; in sparse_keymap_setup()
/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()
/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()
Dpcmcia_resource.c895 res->end = s->map_size; in pcmcia_request_window()
896 align = (s->features & SS_CAP_MEM_ALIGN) ? res->end : s->map_size; in pcmcia_request_window()
897 if (res->end & (s->map_size-1)) { in pcmcia_request_window()
Dxxs1500_ss.c265 sock->socket.map_size = MEM_MAP_SIZE; in xxs1500_pcmcia_probe()
Dbfin_cf_pcmcia.c267 cf->socket.map_size = SZ_2K; in bfin_cf_probe()
Domap_cf.c298 cf->socket.map_size = SZ_2K; in omap_cf_probe()
Delectra_cf.c292 cf->socket.map_size = 0x800; in electra_cf_probe()
Dat91_cf.c301 cf->socket.map_size = SZ_2K; in at91_cf_probe()
Dbcm63xx_pcmcia.c392 sock->map_size = resource_size(skt->common_res); in bcm63xx_drv_pcmcia_probe()
/drivers/iommu/
Ddmar.c587 int map_size, err=0; in map_iommu() local
615 map_size = max_t(int, ecap_max_iotlb_offset(iommu->ecap), in map_iommu()
617 map_size = VTD_PAGE_ALIGN(map_size); in map_iommu()
618 if (map_size > iommu->reg_size) { in map_iommu()
621 iommu->reg_size = map_size; in map_iommu()
/drivers/net/ethernet/pasemi/
Dpasemi_mac.c1394 const unsigned int *map_size, in pasemi_mac_queue_csdesc() argument
1435 CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); in pasemi_mac_queue_csdesc()
1437 CS_DESC(csring, fill+i) = XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); in pasemi_mac_queue_csdesc()
1487 unsigned int map_size[MAX_SKB_FRAGS+1]; in pasemi_mac_start_tx() local
1502 map_size[0] = skb_headlen(skb); in pasemi_mac_start_tx()
1511 map_size[i+1] = skb_frag_size(frag); in pasemi_mac_start_tx()
1554 pasemi_mac_queue_csdesc(skb, map, map_size, txring, csring); in pasemi_mac_start_tx()
1564 XCT_PTR_LEN(map_size[i]) | XCT_PTR_ADDR(map[i]); in pasemi_mac_start_tx()
1590 pci_unmap_single(mac->dma_pdev, map[nfrags], map_size[nfrags], in pasemi_mac_start_tx()
/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()
/drivers/scsi/
Dscsi_debug.c264 static unsigned long map_size; variable
2028 next = find_next_zero_bit(map_storep, map_size, index); in map_state()
2030 next = find_next_bit(map_storep, map_size, index); in map_state()
2045 if (index < map_size) in map_region()
2061 index < map_size) { in unmap_region()
3195 count = bitmap_scnlistprintf(buf, PAGE_SIZE, map_storep, map_size); in sdebug_map_show()
3415 map_size = lba_to_map_index(sdebug_store_sectors - 1) + 1; in scsi_debug_init()
3416 map_storep = vmalloc(BITS_TO_LONGS(map_size) * sizeof(long)); in scsi_debug_init()
3419 map_size); in scsi_debug_init()
3427 bitmap_zero(map_storep, map_size); in scsi_debug_init()
/drivers/net/ethernet/brocade/bna/
Dbnad.h254 u32 map_size; member
Dbnad.c276 unmap_q->map_size = 0; in bnad_rxq_alloc_uninit()
294 unmap_q->map_size = rcb->rxq->buffer_size; in bnad_rxq_alloc_init()
297 unmap_q->map_size = in bnad_rxq_alloc_init()
302 BUG_ON(((PAGE_SIZE << order) % unmap_q->map_size)); in bnad_rxq_alloc_init()
383 page_offset = prev->page_offset + unmap_q->map_size; in bnad_rxq_refill_page()
394 unmap_q->map_size, DMA_FROM_DEVICE); in bnad_rxq_refill_page()
399 unmap->vector.len = unmap_q->map_size; in bnad_rxq_refill_page()
400 page_offset += unmap_q->map_size; in bnad_rxq_refill_page()
/drivers/video/aty/
Datyfb_base.c1931 unsigned int size, page, map_size = 0; in atyfb_mmap() local
1955 map_size = 0; in atyfb_mmap()
1966 map_size = par->mmap_map[i].size - (offset - start); in atyfb_mmap()
1970 if (!map_size) { in atyfb_mmap()
1974 if (page + map_size > size) in atyfb_mmap()
1975 map_size = size - page; in atyfb_mmap()
1981 map_offset >> PAGE_SHIFT, map_size, vma->vm_page_prot)) in atyfb_mmap()
1984 page += map_size; in atyfb_mmap()
1987 if (!map_size) in atyfb_mmap()

12