Searched refs:nr_pages (Results 1 - 25 of 90) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/mm/
H A Dmemory_hotplug.c63 int nr_pages = PAGES_PER_SECTION; local
71 nr_pages, MEMMAP_HOTPLUG);
75 memmap_init_zone(nr_pages, nid, zone_type,
82 int nr_pages = PAGES_PER_SECTION; local
88 ret = sparse_add_one_section(zone, phys_start_pfn, nr_pages);
108 unsigned long nr_pages)
115 end_sec = pfn_to_section_nr(phys_start_pfn + nr_pages - 1);
164 int online_pages(unsigned long pfn, unsigned long nr_pages) argument
182 grow_zone_span(zone, pfn, pfn + nr_pages);
183 grow_pgdat_span(zone->zone_pgdat, pfn, pfn + nr_pages);
107 __add_pages(struct zone *zone, unsigned long phys_start_pfn, unsigned long nr_pages) argument
[all...]
H A Dquicklist.c41 pages_to_free = q->nr_pages - max_pages(min_pages);
56 if (q->nr_pages > min_pages) {
84 count += q->nr_pages;
H A Dsparse.c167 unsigned long nr_pages = 0; local
174 nr_pages += PAGES_PER_SECTION;
177 return nr_pages * sizeof(struct page);
264 static struct page *__kmalloc_section_memmap(unsigned long nr_pages) argument
267 unsigned long memmap_size = sizeof(struct page) * nr_pages;
294 static void __kfree_section_memmap(struct page *memmap, unsigned long nr_pages) argument
300 get_order(sizeof(struct page) * nr_pages));
309 int nr_pages)
323 memmap = __kmalloc_section_memmap(nr_pages);
339 __kfree_section_memmap(memmap, nr_pages);
308 sparse_add_one_section(struct zone *zone, unsigned long start_pfn, int nr_pages) argument
[all...]
H A Dvmscan.c760 static void shrink_active_list(unsigned long nr_pages, struct zone *zone, argument
822 pgmoved = isolate_lru_pages(nr_pages, &zone->active_list,
1373 * Helper function for shrink_all_memory(). Tries to reclaim 'nr_pages' pages
1379 static unsigned long shrink_all_zones(unsigned long nr_pages, int prio, argument
1397 if (zone->nr_scan_active >= nr_pages || pass > 3) {
1399 nr_to_scan = min(nr_pages,
1407 if (zone->nr_scan_inactive >= nr_pages || pass > 3) {
1409 nr_to_scan = min(nr_pages,
1412 if (ret >= nr_pages)
1426 * Try to free `nr_pages' o
1433 shrink_all_memory(unsigned long nr_pages) argument
1616 const unsigned long nr_pages = 1 << order; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dmpage.h17 unsigned nr_pages, get_block_t get_block);
H A Dquicklist.h18 int nr_pages; member in struct:quicklist
43 q->nr_pages--;
71 q->nr_pages++;
H A Dmemory_hotplug.h56 extern int zone_grow_waitqueues(struct zone *zone, unsigned long nr_pages);
65 unsigned long nr_pages);
159 unsigned long nr_pages)
170 int nr_pages);
158 __remove_pages(struct zone *zone, unsigned long start_pfn, unsigned long nr_pages) argument
H A Dpagevec.h30 pgoff_t start, unsigned nr_pages);
33 unsigned nr_pages);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/ehca/
H A Dehca_eq.c58 u32 nr_pages; local
82 &nr_pages, &eq->ist);
89 ret = ipz_queue_ctor(&eq->ipz_queue, nr_pages,
96 for (i = 0; i < nr_pages; i++) {
110 if (i == (nr_pages - 1)) {
H A Dipz_pt_fn.c150 int nr_pages; local
156 nr_pages = queue->queue_length / queue->pagesize;
157 for (g = 0; g < nr_pages; g += pages_per_kpage)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/media/
H A Dvideo-buf.h37 struct scatterlist* videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages);
44 struct scatterlist* videobuf_pages_to_sg(struct page **pages, int nr_pages,
90 int nr_pages; member in struct:videobuf_dmabuf
98 int nr_pages);
100 dma_addr_t addr, int nr_pages);
179 typedef int (vb_map_sg_t)(void *dev,struct scatterlist *sglist,int nr_pages,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm26/boot/compressed/
H A Duncompress.h17 unsigned long nr_pages; member in struct:param_struct
104 if (params->nr_pages * params->page_size < 4096*1024) error("<4M of mem\n");
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm26/
H A Duncompress.h18 unsigned long nr_pages; member in struct:param_struct
105 if (params->nr_pages * params->page_size < 4096*1024) error("<4M of mem\n");
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/ehea/
H A Dehea_qmr.c103 int i, nr_pages; local
108 nr_pages = queue->queue_length / queue->pagesize;
110 for (i = 0; i < nr_pages; i += pages_per_kpage)
149 ret = hw_queue_ctor(&cq->hw_queue, cq->attr.nr_pages,
154 for (counter = 0; counter < cq->attr.nr_pages; counter++) {
168 cq, hret, counter, cq->attr.nr_pages);
172 if (counter == (cq->attr.nr_pages - 1)) {
272 ret = hw_queue_ctor(&eq->hw_queue, eq->attr.nr_pages,
279 for (i = 0; i < eq->attr.nr_pages; i++) {
293 if (i == (eq->attr.nr_pages
373 ehea_qp_alloc_register(struct ehea_qp *qp, struct hw_queue *hw_queue, int nr_pages, int wqe_size, int act_nr_sges, struct ehea_adapter *adapter, int h_call_q_selector) argument
553 u64 hret, pt_abs, start, end, nr_pages; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/
H A Dsplice.c43 int nr_pages; /* number of pages in map */ member in struct:splice_pipe_desc
179 unsigned int spd_pages = spd->nr_pages;
215 if (!--spd->nr_pages)
271 unsigned int loff, nr_pages; local
287 nr_pages = (len + loff + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
289 if (nr_pages > PIPE_BUFFERS)
290 nr_pages = PIPE_BUFFERS;
296 page_cache_readahead(mapping, &in->f_ra, in, index, nr_pages);
306 spd.nr_pages = find_get_pages_contig(mapping, index, nr_pages, page
816 unsigned long nr_pages; local
871 unsigned long nr_pages; local
[all...]
H A Dbio.c307 int nr_pages; local
309 nr_pages = ((q->max_sectors << 9) + PAGE_SIZE - 1) >> PAGE_SHIFT;
310 if (nr_pages > q->max_phys_segments)
311 nr_pages = q->max_phys_segments;
312 if (nr_pages > q->max_hw_segments)
313 nr_pages = q->max_hw_segments;
315 return nr_pages;
609 int nr_pages = 0; local
621 nr_pages += end - start;
629 if (!nr_pages)
817 const int nr_pages = end - start; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/md/
H A Dkcopyd.c46 unsigned int nr_pages; member in struct:kcopyd_client
146 kc->nr_pages += nr;
152 BUG_ON(kc->nr_free_pages != kc->nr_pages);
155 kc->nr_free_pages = kc->nr_pages = 0;
187 unsigned int nr_pages; member in struct:kcopyd_job
369 job->nr_pages = dm_div_up(job->dests[0].count + job->offset,
371 r = kcopyd_get_pages(job->kc, job->nr_pages, &job->pages);
556 job->nr_pages = 0;
646 int kcopyd_client_create(unsigned int nr_pages, struct kcopyd_client **result) argument
663 kc->nr_pages
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/power/
H A Dswap.c320 int nr_pages; local
330 nr_pages = 0;
340 if (!(nr_pages % m))
341 printk("\b\b\b\b%3d%%", nr_pages / m);
342 nr_pages++;
362 static int enough_swap(unsigned int nr_pages) argument
367 return free_swap > nr_pages + PAGES_FOR_IO;
492 * (assume there are @nr_pages pages to load)
505 unsigned nr_pages; local
511 nr_pages
[all...]
H A Dsnapshot.c1078 static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem) argument
1089 nr_pages += count_pages_for_highmem(nr_highmem);
1091 nr_pages, PAGES_FOR_IO, meta, free);
1093 return free > nr_pages + PAGES_FOR_IO + meta;
1152 unsigned int nr_pages, unsigned int nr_highmem)
1169 nr_pages += alloc_highmem_image_pages(copy_bm, nr_highmem);
1171 while (nr_pages-- > 0) {
1201 unsigned int nr_pages, nr_highmem; local
1206 nr_pages = count_data_pages();
1208 printk("swsusp: Need to copy %u pages\n", nr_pages
1151 swsusp_alloc(struct memory_bitmap *orig_bm, struct memory_bitmap *copy_bm, unsigned int nr_pages, unsigned int nr_highmem) argument
1686 unsigned int nr_pages, nr_highmem; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/video/
H A Dvideo-buf.c54 videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages) argument
60 sglist = kcalloc(nr_pages, sizeof(struct scatterlist), GFP_KERNEL);
63 for (i = 0; i < nr_pages; i++, virt += PAGE_SIZE) {
79 videobuf_pages_to_sg(struct page **pages, int nr_pages, int offset) argument
86 sglist = kcalloc(nr_pages, sizeof(*sglist), GFP_KERNEL);
98 for (i = 1; i < nr_pages; i++) {
143 dma->nr_pages = last-first+1;
144 dma->pages = kmalloc(dma->nr_pages * sizeof(struct page*),
149 data,size,dma->nr_pages);
155 data & PAGE_MASK, dma->nr_pages,
167 videobuf_dma_init_kernel(struct videobuf_dmabuf *dma, int direction, int nr_pages) argument
185 videobuf_dma_init_overlay(struct videobuf_dmabuf *dma, int direction, dma_addr_t addr, int nr_pages) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/kernel/
H A Dcompat.c46 unsigned long nr_pages; /* 4 */ member in struct:param_struct::__anon3417::__anon3418
108 if (params->u1.s.nr_pages != 0x02000 &&
109 params->u1.s.nr_pages != 0x04000 &&
110 params->u1.s.nr_pages != 0x08000 &&
111 params->u1.s.nr_pages != 0x10000) {
115 params->u1.s.nr_pages = 0x1000; /* 16MB */
163 tag = memtag(tag, PHYS_OFFSET, params->u1.s.nr_pages * PAGE_SIZE);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/dma/
H A Diovlock.c93 page_list->nr_pages = num_pages_spanned(&iov[i]);
97 pages += page_list->nr_pages;
105 page_list->nr_pages,
112 if (ret != page_list->nr_pages) {
137 for (j = 0; j < page_list->nr_pages; j++) {
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ntfs/
H A Dfile.c398 * @nr_pages: number of page cache pages to obtain
403 * Obtain @nr_pages locked page cache pages from the mapping @maping and
409 * This is the same as mm/filemap.c::__grab_cache_page(), except that @nr_pages
416 pgoff_t index, const unsigned nr_pages, struct page **pages,
421 BUG_ON(!nr_pages);
448 } while (nr < nr_pages);
470 * @nr_pages: number of pages in @pages
476 * @nr_pages pages in @pages which are locked but not kmap()ped. The source
483 * If @nr_pages is greater than one, we are guaranteed that the cluster size is
493 unsigned nr_pages, s6
415 __ntfs_grab_cache_pages(struct address_space *mapping, pgoff_t index, const unsigned nr_pages, struct page **pages, struct page **cached_page, struct pagevec *lru_pvec) argument
492 ntfs_prepare_pages_for_non_resident_write(struct page **pages, unsigned nr_pages, s64 pos, size_t bytes) argument
1289 ntfs_copy_from_user(struct page **pages, unsigned nr_pages, unsigned ofs, const char __user *buf, size_t bytes) argument
1406 ntfs_copy_from_user_iovec(struct page **pages, unsigned nr_pages, unsigned ofs, const struct iovec **iov, size_t *iov_ofs, size_t bytes) argument
1459 ntfs_flush_dcache_pages(struct page **pages, unsigned nr_pages) argument
1483 ntfs_commit_pages_after_non_resident_write( struct page **pages, const unsigned nr_pages, s64 pos, size_t bytes) argument
1638 ntfs_commit_pages_after_write(struct page **pages, const unsigned nr_pages, s64 pos, size_t bytes) argument
1804 unsigned nr_pages; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/devices/
H A Dat91_dataflash26.c335 static int __init add_dataflash(int channel, char *name, int nr_pages, argument
354 device->size = nr_pages * pagesize;
392 int nr_pages; member in struct:dataflash26_types
401 .nr_pages = 128,
408 .nr_pages = 256,
439 df26_types[i].nr_pages,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/arch-rpc/
H A Duncompress.h21 unsigned long nr_pages; member in struct:param_struct
149 if (params->nr_pages * params->page_size < 4096*1024) error("<4M of mem\n");

Completed in 287 milliseconds

1234