Lines Matching refs:fl

184 static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl,
264 struct vm_freelist *fl; in sysctl_vm_phys_free() local
287 fl = vm_phys_free_queues[dom][flind][pind]; in sysctl_vm_phys_free()
289 fl[oind].lcnt); in sysctl_vm_phys_free()
378 vm_freelist_add(struct vm_freelist *fl, vm_page_t m, int order, int tail) in vm_freelist_add() argument
383 TAILQ_INSERT_TAIL(&fl[order].pl, m, listq); in vm_freelist_add()
385 TAILQ_INSERT_HEAD(&fl[order].pl, m, listq); in vm_freelist_add()
386 fl[order].lcnt++; in vm_freelist_add()
390 vm_freelist_rem(struct vm_freelist *fl, vm_page_t m, int order) in vm_freelist_rem() argument
393 TAILQ_REMOVE(&fl[order].pl, m, listq); in vm_freelist_rem()
394 fl[order].lcnt--; in vm_freelist_rem()
494 struct vm_freelist *fl; in vm_phys_init() local
616 fl = vm_phys_free_queues[dom][flind][pind]; in vm_phys_init()
618 TAILQ_INIT(&fl[oind].pl); in vm_phys_init()
671 vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order, in vm_phys_split_pages() argument
682 vm_freelist_add(fl, m_buddy, oind, tail); in vm_phys_split_pages()
699 vm_phys_enq_beg(vm_page_t m, u_int npages, struct vm_freelist *fl, int tail) in vm_phys_enq_beg() argument
715 vm_freelist_add(fl, m, order, tail); in vm_phys_enq_beg()
735 vm_phys_enq_range(vm_page_t m, u_int npages, struct vm_freelist *fl, int tail) in vm_phys_enq_range() argument
751 vm_freelist_add(fl, m, order, tail); in vm_phys_enq_range()
785 struct vm_freelist *alt, *fl; in vm_phys_alloc_npages() local
801 fl = vm_phys_free_queues[domain][flind][pool]; in vm_phys_alloc_npages()
803 while ((m = TAILQ_FIRST(&fl[oind].pl)) != NULL) { in vm_phys_alloc_npages()
804 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_npages()
814 vm_phys_enq_range(m, avail - i, fl, 1); in vm_phys_alloc_npages()
837 fl, 1); in vm_phys_alloc_npages()
877 struct vm_freelist *alt, *fl; in vm_phys_alloc_freelist_pages() local
898 fl = &vm_phys_free_queues[domain][flind][pool][0]; in vm_phys_alloc_freelist_pages()
900 m = TAILQ_FIRST(&fl[oind].pl); in vm_phys_alloc_freelist_pages()
902 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_freelist_pages()
904 vm_phys_split_pages(m, oind, fl, order, 1); in vm_phys_alloc_freelist_pages()
923 vm_phys_split_pages(m, oind, fl, order, 1); in vm_phys_alloc_freelist_pages()
1135 struct vm_freelist *fl; in vm_phys_free_pages() local
1159 fl = (*seg->free_queues)[m_buddy->pool]; in vm_phys_free_pages()
1160 vm_freelist_rem(fl, m_buddy, order); in vm_phys_free_pages()
1168 fl = (*seg->free_queues)[m->pool]; in vm_phys_free_pages()
1169 vm_freelist_add(fl, m, order, 1); in vm_phys_free_pages()
1199 struct vm_freelist *fl; in vm_phys_enqueue_contig() local
1211 fl = (*seg->free_queues)[m->pool]; in vm_phys_enqueue_contig()
1218 m = vm_phys_enq_range(m, roundup2(lo, 1 << order) - lo, fl, 1); in vm_phys_enqueue_contig()
1227 vm_freelist_add(fl, m, order, 1); in vm_phys_enqueue_contig()
1231 vm_phys_enq_beg(m, m_end - m, fl, 1); in vm_phys_enqueue_contig()
1308 struct vm_freelist *fl; in vm_phys_unfree_page() local
1344 fl = (*seg->free_queues)[m_set->pool]; in vm_phys_unfree_page()
1346 vm_freelist_rem(fl, m_set, order); in vm_phys_unfree_page()
1356 vm_freelist_add(fl, m_tmp, order, 0); in vm_phys_unfree_page()
1368 vm_phys_find_freelist_contig(struct vm_freelist *fl, u_long npages, in vm_phys_find_freelist_contig() argument
1388 TAILQ_FOREACH(m, &fl[max_order].pl, listq) { in vm_phys_find_freelist_contig()
1446 struct vm_freelist *fl; in vm_phys_find_queues_contig() local
1460 fl = (*queues)[pind]; in vm_phys_find_queues_contig()
1461 TAILQ_FOREACH(m_ret, &fl[oind].pl, listq) { in vm_phys_find_queues_contig()
1480 fl = (*queues)[pind]; in vm_phys_find_queues_contig()
1481 m_ret = vm_phys_find_freelist_contig(fl, npages, in vm_phys_find_queues_contig()
1504 struct vm_freelist *fl; in vm_phys_alloc_contig() local
1553 fl = (*queues)[m->pool]; in vm_phys_alloc_contig()
1555 vm_freelist_rem(fl, m, oind); in vm_phys_alloc_contig()
1560 fl = (*queues)[VM_FREEPOOL_DEFAULT]; in vm_phys_alloc_contig()
1561 vm_phys_enq_range(&m_run[npages], m - &m_run[npages], fl, 0); in vm_phys_alloc_contig()
1847 struct vm_freelist *fl; in DB_SHOW_COMMAND_FLAGS() local
1866 fl = vm_phys_free_queues[dom][flind][pind]; in DB_SHOW_COMMAND_FLAGS()
1867 db_printf(" | %6.6d", fl[oind].lcnt); in DB_SHOW_COMMAND_FLAGS()