Lines Matching refs:spp

326 	struct swappri *spp, *pspp;  in swaplist_insert()  local
336 LIST_FOREACH(spp, &swap_priority, spi_swappri) { in swaplist_insert()
337 if (priority <= spp->spi_priority) in swaplist_insert()
339 pspp = spp; in swaplist_insert()
345 if (spp == NULL || spp->spi_priority != priority) { in swaplist_insert()
346 spp = newspp; /* use newspp! */ in swaplist_insert()
350 spp->spi_priority = priority; in swaplist_insert()
351 TAILQ_INIT(&spp->spi_swapdev); in swaplist_insert()
354 LIST_INSERT_AFTER(pspp, spp, spi_swappri); in swaplist_insert()
356 LIST_INSERT_HEAD(&swap_priority, spp, spi_swappri); in swaplist_insert()
367 TAILQ_INSERT_TAIL(&spp->spi_swapdev, sdp, swd_next); in swaplist_insert()
382 struct swappri *spp; in swaplist_find() local
392 LIST_FOREACH(spp, &swap_priority, spi_swappri) { in swaplist_find()
393 TAILQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) { in swaplist_find()
396 TAILQ_REMOVE(&spp->spi_swapdev, in swaplist_find()
416 struct swappri *spp, *nextspp; in swaplist_trim() local
421 LIST_FOREACH_SAFE(spp, &swap_priority, spi_swappri, nextspp) { in swaplist_trim()
422 if (!TAILQ_EMPTY(&spp->spi_swapdev)) in swaplist_trim()
424 LIST_REMOVE(spp, spi_swappri); in swaplist_trim()
425 kmem_free(spp, sizeof(*spp)); in swaplist_trim()
440 struct swappri *spp; in swapdrum_getsdp() local
444 LIST_FOREACH(spp, &swap_priority, spi_swappri) { in swapdrum_getsdp()
445 TAILQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) { in swapdrum_getsdp()
515 struct swappri *spp; in sys_swapctl() local
661 spp = kmem_alloc(sizeof(*spp), KM_SLEEP); in sys_swapctl()
666 swaplist_insert(sdp, spp, priority); in sys_swapctl()
671 kmem_free(spp, sizeof(*spp)); in sys_swapctl()
685 spp = kmem_alloc(sizeof(*spp), KM_SLEEP); in sys_swapctl()
696 kmem_free(spp, sizeof(*spp)); in sys_swapctl()
699 swaplist_insert(sdp, spp, priority); in sys_swapctl()
781 struct swappri *spp; in uvm_swap_stats() local
803 LIST_FOREACH(spp, &swap_priority, spi_swappri) { in uvm_swap_stats()
804 TAILQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) { in uvm_swap_stats()
1148 struct swappri *spp; in uvm_swap_shutdown() local
1158 LIST_FOREACH(spp, &swap_priority, spi_swappri) in uvm_swap_shutdown()
1159 TAILQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) { in uvm_swap_shutdown()
1176 TAILQ_REMOVE(&spp->spi_swapdev, sdp, swd_next); in uvm_swap_shutdown()
1640 struct swappri *spp; in uvm_swap_alloc() local
1668 LIST_FOREACH(spp, &swap_priority, spi_swappri) { in uvm_swap_alloc()
1669 TAILQ_FOREACH(sdp, &spp->spi_swapdev, swd_next) { in uvm_swap_alloc()
1686 TAILQ_REMOVE(&spp->spi_swapdev, sdp, swd_next); in uvm_swap_alloc()
1687 TAILQ_INSERT_TAIL(&spp->spi_swapdev, sdp, swd_next); in uvm_swap_alloc()