Home
last modified time | relevance | path

Searched refs:page_count (Results 1 – 25 of 42) sorted by relevance

12

/linux-2.4.37.9/drivers/char/drm-4.0/
Dbufs.c166 int page_count; in drm_addbufs() local
233 dma->page_count * sizeof(*dma->pagelist), in drm_addbufs()
234 (dma->page_count + (count << page_order)) in drm_addbufs()
238 dma->page_count + (count << page_order)); in drm_addbufs()
244 page_count = 0; in drm_addbufs()
250 dma->page_count + page_count, in drm_addbufs()
252 dma->pagelist[dma->page_count + page_count++] in drm_addbufs()
292 dma->page_count += entry->seg_count << page_order; in drm_addbufs()
Dmga_bufs.c224 int page_count; in mga_addbufs_pci() local
292 dma->page_count * sizeof(*dma->pagelist), in mga_addbufs_pci()
293 (dma->page_count + (count << page_order)) in mga_addbufs_pci()
297 dma->page_count + (count << page_order)); in mga_addbufs_pci()
303 page_count = 0; in mga_addbufs_pci()
309 dma->page_count + page_count, in mga_addbufs_pci()
311 dma->pagelist[dma->page_count + page_count++] in mga_addbufs_pci()
351 dma->page_count += entry->seg_count << page_order; in mga_addbufs_pci()
Dmemory.c412 += handle->page_count << PAGE_SHIFT; in drm_bind_agp()
439 += handle->page_count << PAGE_SHIFT; in drm_unbind_agp()
/linux-2.4.37.9/drivers/char/agp/
Dagpgart_be.c220 if (curr->page_count != 0) { in agp_free_memory()
221 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
234 agp_memory *agp_allocate_memory(size_t page_count, u32 type) in agp_allocate_memory() argument
243 if ((atomic_read(&agp_bridge.current_memory_agp) + page_count) > in agp_allocate_memory()
249 new = agp_bridge.alloc_by_type(page_count, type); in agp_allocate_memory()
258 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in agp_allocate_memory()
266 for (i = 0; i < page_count; i++) { in agp_allocate_memory()
275 new->page_count++; in agp_allocate_memory()
716 if ((pg_start + mem->page_count) > num_entries) { in agp_generic_insert_memory()
721 while (j < (pg_start + mem->page_count)) { in agp_generic_insert_memory()
[all …]
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dxfs_buf.c321 int page_count, in _pagebuf_get_pages() argument
327 pb->pb_page_count = page_count; in _pagebuf_get_pages()
328 if (page_count <= PB_PAGES) { in _pagebuf_get_pages()
332 page_count, pb_to_km(flags)); in _pagebuf_get_pages()
336 memset(pb->pb_pages, 0, sizeof(struct page *) * page_count); in _pagebuf_get_pages()
402 unsigned short page_count, i; in _pagebuf_lookup_pages() local
408 page_count = page_buf_btoc(end) - page_buf_btoct(bp->pb_file_offset); in _pagebuf_lookup_pages()
410 error = _pagebuf_get_pages(bp, page_count, flags); in _pagebuf_lookup_pages()
453 page_count--; in _pagebuf_lookup_pages()
466 if (page_count) { in _pagebuf_lookup_pages()
[all …]
/linux-2.4.37.9/arch/sh64/mm/
Dinit.c81 else if (page_count(mem_map+i)) in show_mem()
82 shared += page_count(mem_map+i) - 1; in show_mem()
/linux-2.4.37.9/arch/m68k/mm/
Dinit.c101 else if (!page_count(mem_map+i)) in show_mem()
104 shared += page_count(mem_map+i) - 1; in show_mem()
/linux-2.4.37.9/drivers/char/drm/
Ddrm_bufs.h499 int page_count; in DRM() local
569 dma->page_count * sizeof(*dma->pagelist), in DRM()
570 (dma->page_count + (count << page_order)) in DRM()
587 dma->page_count + (count << page_order) ); in DRM()
592 page_count = 0; in DRM()
600 dma->page_count + page_count, in DRM()
602 dma->pagelist[dma->page_count + page_count++] in DRM()
652 dma->page_count += entry->seg_count << page_order; in DRM()
Ddrm_memory.h430 += handle->page_count << PAGE_SHIFT; in DRM()
457 += handle->page_count << PAGE_SHIFT; in DRM()
/linux-2.4.37.9/arch/sh/mm/
Dinit.c69 else if (page_count(mem_map+i)) in show_mem()
70 shared += page_count(mem_map+i) - 1; in show_mem()
/linux-2.4.37.9/arch/cris/mm/
Dinit.c191 else if (!page_count(mem_map+i)) in show_mem()
193 else if (page_count(mem_map+i) == 1) in show_mem()
196 shared += page_count(mem_map+i) - 1; in show_mem()
/linux-2.4.37.9/drivers/media/video/
Dvino.c84 int page_count; member
588 for (i = 0; i < v->page_count; i++) in vino_waitfor()
656 v->page_count = count; in alloc_buffer()
668 for (i = 0; i < v->page_count; i++) { in free_buffer()
675 PAGE_RATIO * (v->page_count+4) * sizeof(dma_addr_t), in free_buffer()
766 if (size > v->page_count * PAGE_SIZE) { in vino_mmap()
770 for (i = 0; i < v->page_count; i++) { in vino_mmap()
974 buf->size = v->page_count * PAGE_SIZE; in vino_do_ioctl()
/linux-2.4.37.9/mm/
Dvmscan.c146 int freeable = page_count(page) - !!page->buffers <= 2; in try_to_swap_out()
419 if (unlikely(!page_count(page))) in shrink_cache()
428 if (!page->buffers && (page_count(page) != 1 || !page->mapping)) in shrink_cache()
531 if (!page->mapping || page_count(page) > 1) { in shrink_cache()
Dswapfile.c242 if (page_count(page) - !!page->buffers == 2) in exclusive_swap_page()
265 switch (page_count(page)) { in can_share_swap_page()
297 if (page_count(page) - !!page->buffers != 2) /* 2: us + cache */ in remove_exclusive_swap_page()
310 if (page_count(page) - !!page->buffers == 2) { in remove_exclusive_swap_page()
346 if (page_count(page) - !!page->buffers == 2 || vm_swap_full()) { in free_swap_and_cache()
/linux-2.4.37.9/arch/mips64/mm/
Dinit.c165 else if (!page_count(mem_map + i)) in show_mem()
168 shared += page_count(mem_map + i) - 1; in show_mem()
/linux-2.4.37.9/include/linux/
Dagp_backend.h144 size_t page_count; member
Dmm.h200 #define page_count(p) atomic_read(&(p)->count) macro
541 return page_count(page) - !!page->buffers == 1; in is_page_cache_freeable()
/linux-2.4.37.9/arch/mips/mm/
Dinit.c152 else if (!page_count(mem_map + i)) in show_mem()
155 shared += page_count(mem_map + i) - 1; in show_mem()
/linux-2.4.37.9/arch/x86_64/mm/
Dinit.c88 else if (page_count(mem_map+i)) in show_mem()
89 shared += page_count(mem_map+i) - 1; in show_mem()
Dnuma.c171 else if (!page_count(lmem_map+i)) in show_mem()
/linux-2.4.37.9/arch/s390/mm/
Dinit.c90 else if (page_count(mem_map+i)) in show_mem()
/linux-2.4.37.9/arch/i386/mm/
Dinit.c111 else if (page_count(mem_map+i)) in show_mem()
112 shared += page_count(mem_map+i) - 1; in show_mem()
/linux-2.4.37.9/arch/ia64/mm/
Dinit.c242 else if (page_count(pgdat->node_mem_map + i)) in show_mem()
243 shared += page_count(pgdat->node_mem_map + i) - 1; in show_mem()
/linux-2.4.37.9/arch/s390x/mm/
Dinit.c197 else if (page_count(mem_map+i)) in show_mem()
/linux-2.4.37.9/arch/alpha/mm/
Dinit.c138 else if (!page_count(mem_map+i)) in show_mem()

12