Lines Matching refs:fl

180 static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl,
260 struct vm_freelist *fl; in sysctl_vm_phys_free() local
283 fl = vm_phys_free_queues[dom][flind][pind]; in sysctl_vm_phys_free()
285 fl[oind].lcnt); in sysctl_vm_phys_free()
374 vm_freelist_add(struct vm_freelist *fl, vm_page_t m, int order, int tail) in vm_freelist_add() argument
379 TAILQ_INSERT_TAIL(&fl[order].pl, m, listq); in vm_freelist_add()
381 TAILQ_INSERT_HEAD(&fl[order].pl, m, listq); in vm_freelist_add()
382 fl[order].lcnt++; in vm_freelist_add()
386 vm_freelist_rem(struct vm_freelist *fl, vm_page_t m, int order) in vm_freelist_rem() argument
389 TAILQ_REMOVE(&fl[order].pl, m, listq); in vm_freelist_rem()
390 fl[order].lcnt--; in vm_freelist_rem()
490 struct vm_freelist *fl; in vm_phys_init() local
606 fl = vm_phys_free_queues[dom][flind][pind]; in vm_phys_init()
608 TAILQ_INIT(&fl[oind].pl); in vm_phys_init()
662 vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order, in vm_phys_split_pages() argument
673 vm_freelist_add(fl, m_buddy, oind, tail); in vm_phys_split_pages()
690 vm_phys_enq_range(vm_page_t m, u_int npages, struct vm_freelist *fl, int tail) in vm_phys_enq_range() argument
707 vm_freelist_add(fl, m, order, tail); in vm_phys_enq_range()
729 struct vm_freelist *alt, *fl; in vm_phys_alloc_npages() local
745 fl = vm_phys_free_queues[domain][flind][pool]; in vm_phys_alloc_npages()
747 while ((m = TAILQ_FIRST(&fl[oind].pl)) != NULL) { in vm_phys_alloc_npages()
748 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_npages()
758 vm_phys_enq_range(m, avail - need, fl, in vm_phys_alloc_npages()
783 need, fl, 1); in vm_phys_alloc_npages()
824 struct vm_freelist *alt, *fl; in vm_phys_alloc_freelist_pages() local
845 fl = &vm_phys_free_queues[domain][flind][pool][0]; in vm_phys_alloc_freelist_pages()
847 m = TAILQ_FIRST(&fl[oind].pl); in vm_phys_alloc_freelist_pages()
849 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_freelist_pages()
851 vm_phys_split_pages(m, oind, fl, order, 1); in vm_phys_alloc_freelist_pages()
870 vm_phys_split_pages(m, oind, fl, order, 1); in vm_phys_alloc_freelist_pages()
1086 struct vm_freelist *fl; in vm_phys_free_pages() local
1110 fl = (*seg->free_queues)[m_buddy->pool]; in vm_phys_free_pages()
1111 vm_freelist_rem(fl, m_buddy, order); in vm_phys_free_pages()
1119 fl = (*seg->free_queues)[m->pool]; in vm_phys_free_pages()
1120 vm_freelist_add(fl, m, order, 1); in vm_phys_free_pages()
1150 struct vm_freelist *fl; in vm_phys_enqueue_contig() local
1161 fl = (*seg->free_queues)[m->pool]; in vm_phys_enqueue_contig()
1169 vm_freelist_add(fl, m, order, 1); in vm_phys_enqueue_contig()
1177 vm_freelist_add(fl, m, order, 1); in vm_phys_enqueue_contig()
1186 vm_freelist_add(fl, m, order, 1); in vm_phys_enqueue_contig()
1298 struct vm_freelist *fl; in vm_phys_unfree_page() local
1334 fl = (*seg->free_queues)[m_set->pool]; in vm_phys_unfree_page()
1336 vm_freelist_rem(fl, m_set, order); in vm_phys_unfree_page()
1346 vm_freelist_add(fl, m_tmp, order, 0); in vm_phys_unfree_page()
1410 struct vm_freelist *fl; in vm_phys_alloc_seg_contig() local
1427 fl = (*seg->free_queues)[pind]; in vm_phys_alloc_seg_contig()
1428 TAILQ_FOREACH(m_ret, &fl[oind].pl, listq) { in vm_phys_alloc_seg_contig()
1478 fl = (*seg->free_queues)[m->pool]; in vm_phys_alloc_seg_contig()
1479 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_seg_contig()
1486 fl = (*seg->free_queues)[VM_FREEPOOL_DEFAULT]; in vm_phys_alloc_seg_contig()
1487 vm_phys_enq_range(&m_ret[npages], npages_end - npages, fl, 0); in vm_phys_alloc_seg_contig()
1740 struct vm_freelist *fl; in DB_SHOW_COMMAND() local
1759 fl = vm_phys_free_queues[dom][flind][pind]; in DB_SHOW_COMMAND()
1760 db_printf(" | %6.6d", fl[oind].lcnt); in DB_SHOW_COMMAND()