sys/kern/subr_blist.c
1003
blist_free(dest, blk, (swblk_t)radix);
sys/kern/subr_blist.c
1012
if (scan[i].bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
1015
if (count >= (swblk_t)radix) {
sys/kern/subr_blist.c
1022
(swblk_t)radix
sys/kern/subr_blist.c
1024
count -= (swblk_t)radix;
sys/kern/subr_blist.c
1038
blk += (swblk_t)radix;
sys/kern/subr_blist.c
1051
static swblk_t
sys/kern/subr_blist.c
1052
blst_radix_init(blmeta_t *scan, swblk_t radix, swblk_t skip, swblk_t count)
sys/kern/subr_blist.c
1054
swblk_t i;
sys/kern/subr_blist.c
1055
swblk_t next_skip;
sys/kern/subr_blist.c
1056
swblk_t memindex = 0;
sys/kern/subr_blist.c
1085
if (count >= (swblk_t)radix) {
sys/kern/subr_blist.c
1093
(swblk_t)radix
sys/kern/subr_blist.c
1095
count -= (swblk_t)radix;
sys/kern/subr_blist.c
1112
scan[i].bm_bighint = (swblk_t)-1;
sys/kern/subr_blist.c
1124
blst_radix_print(blmeta_t *scan, swblk_t blk, swblk_t radix, swblk_t skip, int tab)
sys/kern/subr_blist.c
1126
swblk_t i;
sys/kern/subr_blist.c
1127
swblk_t next_skip;
sys/kern/subr_blist.c
1174
if (scan[i].bm_bighint == (swblk_t)-1) {
sys/kern/subr_blist.c
1189
blk += (swblk_t)radix;
sys/kern/subr_blist.c
1206
swblk_t size = 1024;
sys/kern/subr_blist.c
1207
swblk_t i;
sys/kern/subr_blist.c
1210
for (i = 1; i < (swblk_t)ac; ++i) {
sys/kern/subr_blist.c
1225
swblk_t da = 0;
sys/kern/subr_blist.c
1226
swblk_t count = 0;
sys/kern/subr_blist.c
1227
swblk_t blkat;
sys/kern/subr_blist.c
1251
swblk_t blk = blist_alloc(bl, count);
sys/kern/subr_blist.c
1257
swblk_t blk = blist_allocat(bl, count, blkat);
sys/kern/subr_blist.c
1274
swblk_t b, e;
sys/kern/subr_blist.c
138
static swblk_t blst_leaf_alloc(blmeta_t *scan, swblk_t blkat,
sys/kern/subr_blist.c
139
swblk_t blk, swblk_t count);
sys/kern/subr_blist.c
140
static swblk_t blst_meta_alloc(blmeta_t *scan, swblk_t blkat,
sys/kern/subr_blist.c
141
swblk_t blk, swblk_t count,
sys/kern/subr_blist.c
142
swblk_t radix, swblk_t skip);
sys/kern/subr_blist.c
143
static void blst_leaf_free(blmeta_t *scan, swblk_t relblk, swblk_t count);
sys/kern/subr_blist.c
144
static void blst_meta_free(blmeta_t *scan, swblk_t freeBlk, swblk_t count,
sys/kern/subr_blist.c
145
swblk_t radix, swblk_t skip,
sys/kern/subr_blist.c
146
swblk_t blk);
sys/kern/subr_blist.c
147
static swblk_t blst_leaf_fill(blmeta_t *scan, swblk_t blk, swblk_t count);
sys/kern/subr_blist.c
148
static swblk_t blst_meta_fill(blmeta_t *scan, swblk_t fillBlk, swblk_t count,
sys/kern/subr_blist.c
149
swblk_t radix, swblk_t skip,
sys/kern/subr_blist.c
150
swblk_t blk);
sys/kern/subr_blist.c
151
static void blst_copy(blmeta_t *scan, swblk_t blk, swblk_t radix,
sys/kern/subr_blist.c
152
swblk_t skip, blist_t dest, swblk_t count);
sys/kern/subr_blist.c
153
static swblk_t blst_radix_init(blmeta_t *scan, swblk_t radix,
sys/kern/subr_blist.c
154
swblk_t skip, swblk_t count);
sys/kern/subr_blist.c
155
static int blst_radix_gapfind(blmeta_t *scan, swblk_t blk, swblk_t radix, swblk_t skip,
sys/kern/subr_blist.c
156
int state, swblk_t *maxbp, swblk_t *maxep, swblk_t *bp, swblk_t *ep);
sys/kern/subr_blist.c
159
static void blst_radix_print(blmeta_t *scan, swblk_t blk,
sys/kern/subr_blist.c
160
swblk_t radix, swblk_t skip, int tab);
sys/kern/subr_blist.c
176
blist_create(swblk_t blocks)
sys/kern/subr_blist.c
179
swblk_t radix;
sys/kern/subr_blist.c
180
swblk_t skip = 0;
sys/kern/subr_blist.c
241
swblk_t
sys/kern/subr_blist.c
242
blist_alloc(blist_t bl, swblk_t count)
sys/kern/subr_blist.c
244
swblk_t blk = SWAPBLK_NONE;
sys/kern/subr_blist.c
262
swblk_t
sys/kern/subr_blist.c
263
blist_allocat(blist_t bl, swblk_t count, swblk_t blkat)
sys/kern/subr_blist.c
265
swblk_t blk = SWAPBLK_NONE;
sys/kern/subr_blist.c
293
blist_free(blist_t bl, swblk_t blkno, swblk_t count)
sys/kern/subr_blist.c
316
swblk_t
sys/kern/subr_blist.c
317
blist_fill(blist_t bl, swblk_t blkno, swblk_t count)
sys/kern/subr_blist.c
319
swblk_t filled;
sys/kern/subr_blist.c
348
blist_resize(blist_t *pbl, swblk_t count, int freenew)
sys/kern/subr_blist.c
378
blist_gapfind(blist_t bl, swblk_t *maxbp, swblk_t *maxep)
sys/kern/subr_blist.c
381
swblk_t b, e;
sys/kern/subr_blist.c
414
blst_radix_gapfind(blmeta_t *scan, swblk_t blk, swblk_t radix, swblk_t skip,
sys/kern/subr_blist.c
415
int state, swblk_t *maxbp, swblk_t *maxep, swblk_t *bp, swblk_t *ep)
sys/kern/subr_blist.c
417
swblk_t i;
sys/kern/subr_blist.c
418
swblk_t next_skip;
sys/kern/subr_blist.c
482
if (scan[i].bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
530
static swblk_t
sys/kern/subr_blist.c
531
blst_leaf_alloc(blmeta_t *scan, swblk_t blkat __unused, swblk_t blk,
sys/kern/subr_blist.c
532
swblk_t count)
sys/kern/subr_blist.c
605
static swblk_t
sys/kern/subr_blist.c
606
blst_meta_alloc(blmeta_t *scan, swblk_t blkat,
sys/kern/subr_blist.c
607
swblk_t blk, swblk_t count,
sys/kern/subr_blist.c
608
swblk_t radix, swblk_t skip)
sys/kern/subr_blist.c
611
swblk_t next_skip = ((swblk_t)skip / BLIST_META_RADIX);
sys/kern/subr_blist.c
612
swblk_t i;
sys/kern/subr_blist.c
638
if (scan[i].bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
644
scan[i].bm_bighint = (swblk_t)radix;
sys/kern/subr_blist.c
645
scan[i].u.bmu_avail = (swblk_t)radix;
sys/kern/subr_blist.c
653
if (scan[i].bm_bighint == (swblk_t)-1) {
sys/kern/subr_blist.c
665
blk + (swblk_t)radix > blkat) {
sys/kern/subr_blist.c
669
swblk_t r;
sys/kern/subr_blist.c
685
} else if (count > (swblk_t)radix) {
sys/kern/subr_blist.c
693
blk += (swblk_t)radix;
sys/kern/subr_blist.c
708
blst_leaf_free(blmeta_t *scan, swblk_t blk, swblk_t count)
sys/kern/subr_blist.c
749
blst_meta_free(blmeta_t *scan, swblk_t freeBlk, swblk_t count,
sys/kern/subr_blist.c
750
swblk_t radix, swblk_t skip, swblk_t blk)
sys/kern/subr_blist.c
752
swblk_t i;
sys/kern/subr_blist.c
753
swblk_t next_skip = ((swblk_t)skip / BLIST_META_RADIX);
sys/kern/subr_blist.c
773
if (scan[i].bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
810
i = (freeBlk - blk) / (swblk_t)radix;
sys/kern/subr_blist.c
811
blk += i * (swblk_t)radix;
sys/kern/subr_blist.c
815
swblk_t v;
sys/kern/subr_blist.c
817
v = blk + (swblk_t)radix - freeBlk;
sys/kern/subr_blist.c
821
if (scan->bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
844
blk += (swblk_t)radix;
sys/kern/subr_blist.c
856
static swblk_t
sys/kern/subr_blist.c
857
blst_leaf_fill(blmeta_t *scan, swblk_t blk, swblk_t count)
sys/kern/subr_blist.c
860
swblk_t nblks;
sys/kern/subr_blist.c
883
static swblk_t
sys/kern/subr_blist.c
884
blst_meta_fill(blmeta_t *scan, swblk_t fillBlk, swblk_t count,
sys/kern/subr_blist.c
885
swblk_t radix, swblk_t skip, swblk_t blk)
sys/kern/subr_blist.c
887
swblk_t i;
sys/kern/subr_blist.c
888
swblk_t next_skip = ((swblk_t)skip / BLIST_META_RADIX);
sys/kern/subr_blist.c
889
swblk_t nblks = 0;
sys/kern/subr_blist.c
908
if (scan[i].bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
914
scan[i].bm_bighint = (swblk_t)radix;
sys/kern/subr_blist.c
915
scan[i].u.bmu_avail = (swblk_t)radix;
sys/kern/subr_blist.c
922
if (count > (swblk_t)radix)
sys/kern/subr_blist.c
925
i = (fillBlk - blk) / (swblk_t)radix;
sys/kern/subr_blist.c
926
blk += i * (swblk_t)radix;
sys/kern/subr_blist.c
930
swblk_t v;
sys/kern/subr_blist.c
932
v = blk + (swblk_t)radix - fillBlk;
sys/kern/subr_blist.c
936
if (scan->bm_bighint == (swblk_t)-1)
sys/kern/subr_blist.c
947
blk += (swblk_t)radix;
sys/kern/subr_blist.c
962
blst_copy(blmeta_t *scan, swblk_t blk, swblk_t radix,
sys/kern/subr_blist.c
963
swblk_t skip, blist_t dest, swblk_t count)
sys/kern/subr_blist.c
965
swblk_t next_skip;
sys/kern/subr_blist.c
966
swblk_t i;
sys/kern/subr_blist.c
979
if (v & ((swblk_t)1 << i))
sys/sys/blist.h
127
blist_t blist_create(swblk_t);
sys/sys/blist.h
129
swblk_t blist_alloc(blist_t, swblk_t);
sys/sys/blist.h
130
swblk_t blist_allocat(blist_t, swblk_t, swblk_t);
sys/sys/blist.h
131
void blist_free(blist_t, swblk_t, swblk_t);
sys/sys/blist.h
132
swblk_t blist_fill(blist_t, swblk_t, swblk_t);
sys/sys/blist.h
134
void blist_resize(blist_t *, swblk_t, int);
sys/sys/blist.h
135
void blist_gapfind(blist_t, swblk_t *, swblk_t *);
sys/sys/blist.h
76
#define SWAPBLK_NONE ((swblk_t)-1)
sys/sys/blist.h
84
swblk_t bmu_avail; /* space available under us */
sys/sys/blist.h
87
swblk_t bm_bighint; /* biggest contiguous block hint*/
sys/sys/blist.h
91
swblk_t bl_blocks; /* area of coverage */
sys/sys/blist.h
93
swblk_t bl_radix; /* coverage radix */
sys/sys/blist.h
94
swblk_t bl_skip; /* starting skip */
sys/sys/blist.h
95
swblk_t bl_free; /* number of free blocks */
sys/sys/blist.h
97
swblk_t bl_rootblks; /* swblk_t blks allocated for tree */
sys/uvm/uvm_swap.c
1402
swblk_t result;