Lines Matching refs:dbmap
37 #define DBALLOC(dbmap,mapsize,blkno,nblocks) \ argument
38 DBAlloc(dbmap,mapsize,blkno,nblocks)
39 #define DBFREE(dbmap,mapsize,blkno,nblocks) \ argument
40 DBFree(dbmap,mapsize,blkno,nblocks)
41 #define DBALLOCCK(dbmap,mapsize,blkno,nblocks) \ argument
42 DBAllocCK(dbmap,mapsize,blkno,nblocks)
43 #define DBFREECK(dbmap,mapsize,blkno,nblocks) \ argument
44 DBFreeCK(dbmap,mapsize,blkno,nblocks)
53 #define DBALLOC(dbmap, mapsize, blkno, nblocks) argument
54 #define DBFREE(dbmap, mapsize, blkno, nblocks) argument
55 #define DBALLOCCK(dbmap, mapsize, blkno, nblocks) argument
56 #define DBFREECK(dbmap, mapsize, blkno, nblocks) argument
198 struct dbmap *dbmp_le; in dbMount()
220 dbmp_le = (struct dbmap *) mp->data; in dbMount()
305 struct dbmap *dbmp_le; in dbSync()
322 dbmp_le = (struct dbmap *) mp->data; in dbSync()
4063 u32 *dbmap, *d; in DBinitmap() local
4072 dbmap = (u32 *) xmalloc(npages * 4096, L2PSIZE, kernel_heap); in DBinitmap()
4073 if (dbmap == NULL) in DBinitmap()
4076 for (n = 0, d = dbmap; n < npages; n++, d += 1024) in DBinitmap()
4081 for (d = dbmap, cur_block = 0; cur_block < size; in DBinitmap()
4100 *results = dbmap; in DBinitmap()
4107 void DBAlloc(uint * dbmap, s64 mapsize, s64 blkno, s64 nblocks) in DBAlloc() argument
4117 dbmap += (blkno / 32); in DBAlloc()
4123 assert((mask & *dbmap) == 0); in DBAlloc()
4124 *dbmap |= mask; in DBAlloc()
4126 dbmap++; in DBAlloc()
4136 static void DBFree(uint * dbmap, s64 mapsize, s64 blkno, s64 nblocks) in DBFree() argument
4146 dbmap += (blkno / 32); in DBFree()
4152 assert((mask & *dbmap) == mask); in DBFree()
4153 *dbmap &= ~mask; in DBFree()
4155 dbmap++; in DBFree()
4165 static void DBAllocCK(uint * dbmap, s64 mapsize, s64 blkno, s64 nblocks) in DBAllocCK() argument
4175 dbmap += (blkno / 32); in DBAllocCK()
4181 assert((mask & *dbmap) == mask); in DBAllocCK()
4183 dbmap++; in DBAllocCK()
4193 static void DBFreeCK(uint * dbmap, s64 mapsize, s64 blkno, s64 nblocks) in DBFreeCK() argument
4203 dbmap += (blkno / 32); in DBFreeCK()
4209 assert((mask & *dbmap) == 0); in DBFreeCK()
4211 dbmap++; in DBFreeCK()