Home
last modified time | relevance | path

Searched refs:n_pages (Results 1 – 6 of 6) sorted by relevance

/linux-2.4.37.9/drivers/ieee1394/
Ddma.c22 prog->n_pages = 0; in dma_prog_region_init()
31 prog->n_pages = n_bytes / PAGE_SIZE; in dma_prog_region_alloc()
33 prog->kvirt = pci_alloc_consistent(dev, prog->n_pages * PAGE_SIZE, &prog->bus_addr); in dma_prog_region_alloc()
48 pci_free_consistent(prog->dev, prog->n_pages * PAGE_SIZE, prog->kvirt, prog->bus_addr); in dma_prog_region_free()
53 prog->n_pages = 0; in dma_prog_region_free()
63 dma->n_pages = 0; in dma_region_init()
70 unsigned int i, n_pages; in dma_region_alloc() local
75 n_pages = n_bytes / PAGE_SIZE; in dma_region_alloc()
77 dma->kvirt = vmalloc_32(n_pages * PAGE_SIZE); in dma_region_alloc()
83 dma->n_pages = n_pages; in dma_region_alloc()
[all …]
Ddma.h25 unsigned int n_pages; /* # of kernel pages */ member
48 unsigned int n_pages; /* # of kernel pages */ member
Ddv1394.c1053 video->n_frames, video->dv_buf.n_pages, in do_dv1394_init()
1073 video->n_frames*MAX_PACKETS, video->packet_buf.n_pages, in do_dv1394_init()
/linux-2.4.37.9/arch/m68k/atari/
Dstram.c229 static void *get_stram_region( unsigned long n_pages );
230 static void free_stram_region( unsigned long offset, unsigned long n_pages
233 static unsigned long find_free_region( unsigned long n_pages, unsigned long
734 unsigned long start, unsigned long n_pages) in unswap_by_read() argument
742 start, start+n_pages-1 ); in unswap_by_read()
744 for( i = start; i < start+n_pages; ++i ) { in unswap_by_read()
802 static void *get_stram_region( unsigned long n_pages ) in get_stram_region() argument
810 DPRINTK( "get_stram_region(n_pages=%lu)\n", n_pages ); in get_stram_region()
819 if (!(start = find_free_region( n_pages, &total_free, &region_free ))) in get_stram_region()
824 err = unswap_by_read(map, max, start, n_pages); in get_stram_region()
[all …]
/linux-2.4.37.9/arch/sh64/mm/
Dcache.c252 int n_pages; in sh64_icache_inv_user_page_range() local
256 n_pages = ((end - start) >> PAGE_SHIFT); in sh64_icache_inv_user_page_range()
257 if (n_pages >= 64) { in sh64_icache_inv_user_page_range()
655 int n_pages; in sh64_dcache_purge_user_range() local
657 n_pages = ((end - start) >> PAGE_SHIFT); in sh64_dcache_purge_user_range()
658 if (n_pages >= 64) { in sh64_dcache_purge_user_range()
/linux-2.4.37.9/drivers/sound/emu10k1/
Daudio.c1030 unsigned long max_pages, n_pages, pgoffset; local
1083 n_pages = ((vma->vm_end - vma->vm_start) + PAGE_SIZE - 1) >> PAGE_SHIFT;
1087 DPD(2, "n_pages: %ld, max_pages: %ld\n", n_pages, max_pages);
1089 if (pgoffset + n_pages > max_pages)